zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit a62353fb4b3b060ff714824e5c105bcf73419e66 (tree)
parent e0a78d10ccb3c9b5d6ebb17f32ef3b79363cd4d0
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Mon, 28 Dec 2020 22:15:07 -0700

fix `zig test` with regards to passing parameters

Diffstat:
Msrc/main.zig | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/main.zig b/src/main.zig @@ -1833,7 +1833,13 @@ fn buildOutputType( }); } else { for (test_exec_args.items) |arg| { - try argv.append(arg orelse exe_path); + if (arg) |a| { + try argv.append(a); + } else { + try argv.appendSlice(&[_][]const u8{ + exe_path, self_exe_path, + }); + } } } if (runtime_args_start) |i| {