From d5c37d9122240fe95d308fbe15874e14dd786c5a Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 21 Oct 2026 14:38:16 -0300 Subject: Build with Zig 0.17 --- build.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index c5d662f..17080b4 100644 --- a/build.zig +++ b/build.zig @@ -41,7 +41,7 @@ pub fn build(b: *std.Build) void { bridge.root_module.addAnonymousImport("client.wasm", .{ .root_source_file = wasm.getEmittedBin() }); b.installArtifact(bridge); const run_bridge = b.addRunArtifact(bridge); - if (b.args) |args| run_bridge.addArgs(args); + run_bridge.addPassthruArgs(); b.step("serve", "Run the HTTP/WebSocket bridge (--upstream tcp:127.0.0.1:564)").dependOn(&run_bridge.step); const native_http = b.addExecutable(.{ .name = "9web-test", .root_module = b.createModule(.{ .root_source_file = b.path("test/web/native.zig"), @@ -102,7 +102,7 @@ pub fn build(b: *std.Build) void { diff.addArtifactArg(probe); diff.addArg("--session-probe"); diff.addArtifactArg(session_probe); - if (b.args) |args| diff.addArgs(args); + diff.addPassthruArgs(); b.step("differential", "Compare valid traffic with pinned 9fans and go9p").dependOn(&diff.step); const transport_tests = b.addTest(.{ .root_module = b.createModule(.{ .root_source_file = b.path("test/transport.zig"), @@ -134,7 +134,7 @@ pub fn build(b: *std.Build) void { .imports = &.{.{ .name = "cloud9", .module = module }}, }) }); const run_fuzz = b.addRunArtifact(fuzz); - if (b.args) |args| run_fuzz.addArgs(args); + run_fuzz.addPassthruArgs(); b.step("fuzz", "Run deterministic local decoder and server probes (seed, iterations)").dependOn(&run_fuzz.step); // ------------------------------------------------------------------ -- cgit v1.3