File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff 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" });
You can’t perform that action at this time.
0 commit comments