Skip to content

Commit 33c9277

Browse files
committed
build.zig: upgrade to zig 0.12.1
1 parent f5a2c8d commit 33c9277

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

build.zig

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,15 @@ pub fn build(b: *std.Build) !void {
9999
// compile
100100
const tests = b.addTest(.{
101101
.root_source_file = .{ .path = "src/run_tests.zig" },
102-
.test_runner = "src/test_runner.zig",
102+
.test_runner = .{ .path = "src/test_runner.zig" },
103103
.single_threaded = true,
104104
});
105105
try common(tests, options);
106106

107107
// add jsruntime pretty deps
108-
const pretty = tests.step.owner.createModule(.{
109-
.source_file = .{ .path = "vendor/zig-js-runtime/src/pretty.zig" },
108+
tests.root_module.addAnonymousImport("pretty", .{
109+
.root_source_file = .{ .path = "vendor/zig-js-runtime/src/pretty.zig" },
110110
});
111-
tests.addModule("pretty", pretty);
112111

113112
const run_tests = b.addRunArtifact(tests);
114113
if (b.args) |args| {
@@ -176,7 +175,7 @@ fn common(
176175
step.addIncludePath(.{ .path = "vendor/mimalloc/out/include" });
177176
}
178177

179-
fn linkNetSurf(step: *std.build.LibExeObjStep) void {
178+
fn linkNetSurf(step: *std.Build.Step.Compile) void {
180179

181180
// iconv
182181
step.addObjectFile(.{ .path = "vendor/libiconv/lib/libiconv.a" });

0 commit comments

Comments
 (0)