summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig6
1 files changed, 3 insertions, 3 deletions
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);
// ------------------------------------------------------------------