zig_example 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e980ba1d02ed0b35f512be4889fcd402add07b192743217c0902afd5b44f4fb
4
- data.tar.gz: 38a0a05edd263839a642b8dfbca8b245a49554899256a1ebf01feab0ea2718e9
3
+ metadata.gz: 9a071e166956d3f91636c3c71b315beb52fb55ee4f7a868a62bde980952d770e
4
+ data.tar.gz: dbb7051574176fc1465b5d14ac1760bcf0239b3bd5bce171f81c29b67e3388a5
5
5
  SHA512:
6
- metadata.gz: fde12a517a227f7bdda9d631543196dc05a34912f22f9ccb1bd7217648b213d7016bb5692ad6674f80b32300646e56409a9252117af21a2660ce6d00d65988f8
7
- data.tar.gz: adb29012c4ab06bccd4e52aca69f21e71231328bfc6504ccd23892bd069dfaf982cf2ec21bbdb9ff71a7f6d9c3fbba992ad3dde021079c6be1be9e26a49c2ae5
6
+ metadata.gz: 59d183cd951770844e060302d74b1dfbaf9c086bc2ad760e9058b354340df97cd4eb09ae6f9eff4fd365951d5e09fd96218137311b860d6789fdf53aee49c1cc
7
+ data.tar.gz: f672e92cd41decee30059781d2ebdbe300901fac952ea25f05cc972b77247fcc1505e939632de7149325c896cc9a8fd885b23ba76d5487fb7917dbcffb2218d3
data/ext/mkmf.rb CHANGED
@@ -2437,7 +2437,7 @@ site-install-rb: install-rb
2437
2437
  mfile.print " #{timestamp_file('$(RUBYARCHDIR)', target_prefix)}" if $extout
2438
2438
  mfile.print "\n"
2439
2439
  if File.exist?('build.zig')
2440
- mfile.print("\tenv -u DESTDIR zig build -Doptimize=ReleaseSafe test install\n")
2440
+ mfile.print("\tenv -u DESTDIR PKG_CONFIG_PATH='$(libdir)/pkgconfig' RUBY_PC='#{File.basename(CONFIG['ruby_pc'], '.pc')}' zig build -Doptimize=ReleaseSafe test install\n")
2441
2441
  mfile.print("\tcp -v zig-out/lib/#{dllib} .\n")
2442
2442
  else
2443
2443
  mfile.print "\t$(ECHO) linking shared-object #{target_prefix.sub(/\A\/(.*)/, '\1/')}$(DLLIB)\n"
@@ -14,7 +14,7 @@ pub fn build(b: *std.Build) void {
14
14
  .optimize = optimize,
15
15
  });
16
16
 
17
- lib.linkSystemLibrary("ruby");
17
+ lib.linkSystemLibrary(std.os.getenv("RUBY_PC") orelse "ruby");
18
18
  lib.linkSystemLibrary("c");
19
19
 
20
20
  b.installArtifact(lib);
@@ -28,7 +28,7 @@ pub fn build(b: *std.Build) void {
28
28
  .optimize = optimize,
29
29
  });
30
30
 
31
- unit_tests.linkSystemLibrary("ruby");
31
+ unit_tests.linkSystemLibrary(std.os.getenv("RUBY_PC") orelse "ruby");
32
32
  unit_tests.linkSystemLibrary("c");
33
33
 
34
34
  const run_unit_tests = b.addRunArtifact(unit_tests);
@@ -14,7 +14,7 @@ pub fn build(b: *std.Build) void {
14
14
  .optimize = optimize,
15
15
  });
16
16
 
17
- lib.linkSystemLibrary("ruby");
17
+ lib.linkSystemLibrary(std.os.getenv("RUBY_PC") orelse "ruby");
18
18
  lib.linkSystemLibrary("c");
19
19
 
20
20
  b.installArtifact(lib);
@@ -28,7 +28,7 @@ pub fn build(b: *std.Build) void {
28
28
  .optimize = optimize,
29
29
  });
30
30
 
31
- unit_tests.linkSystemLibrary("ruby");
31
+ unit_tests.linkSystemLibrary(std.os.getenv("RUBY_PC") orelse "ruby");
32
32
  unit_tests.linkSystemLibrary("c");
33
33
 
34
34
  const run_unit_tests = b.addRunArtifact(unit_tests);
@@ -24,7 +24,7 @@ pub fn build(b: *std.Build) void {
24
24
  .optimize = optimize,
25
25
  });
26
26
 
27
- lib.linkSystemLibrary("ruby");
27
+ lib.linkSystemLibrary(std.os.getenv("RUBY_PC") orelse "ruby");
28
28
  lib.linkSystemLibrary("c");
29
29
 
30
30
  lib.addIncludePath("src");
@@ -41,7 +41,7 @@ pub fn build(b: *std.Build) void {
41
41
  .optimize = optimize,
42
42
  });
43
43
 
44
- unit_tests.linkSystemLibrary("ruby");
44
+ unit_tests.linkSystemLibrary(std.os.getenv("RUBY_PC") orelse "ruby");
45
45
  unit_tests.linkSystemLibrary("c");
46
46
 
47
47
  unit_tests.addIncludePath("src");
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ZigExample
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zig_example
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank J. Cameron