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 +4 -4
- data/ext/mkmf.rb +1 -1
- data/ext/zigrb_100doors/build.zig +2 -2
- data/ext/zigrb_ackermann/build.zig +2 -2
- data/ext/zigrb_lucas_lehmer/build.zig +2 -2
- data/lib/zig_example/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a071e166956d3f91636c3c71b315beb52fb55ee4f7a868a62bde980952d770e
|
4
|
+
data.tar.gz: dbb7051574176fc1465b5d14ac1760bcf0239b3bd5bce171f81c29b67e3388a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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");
|
data/lib/zig_example/version.rb
CHANGED