diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-21 14:38:16 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-21 14:44:48 -0300 |
| commit | d5c37d9122240fe95d308fbe15874e14dd786c5a (patch) | |
| tree | 3ed108d2af5bd7a5cb07491b16e855e5243b5d63 /build.zig | |
| parent | fe9772b178575fcab93de09fc61c2f13db7db1a8 (diff) | |
| download | cloud9-d5c37d9122240fe95d308fbe15874e14dd786c5a.tar.gz cloud9-d5c37d9122240fe95d308fbe15874e14dd786c5a.zip | |
Build with Zig 0.17
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); // ------------------------------------------------------------------ |
