| author | |
| committer | |
| log | db18b562acd7d7dd3a35880aabee3b1c34fb043a |
| tree | 928058d310524ac7a886ee09171dd982ad76a2aa |
| parent | aa76ca2931d7adbc8ee3b33cdaa2cb1de1adda8a |
2 files changed, 3 insertions(+), 1 deletions(-)
lib/std/Build.zig+1-1| ... | ... | @@ -904,7 +904,7 @@ pub fn addRunArtifact(b: *Build, exe: *Step.Compile) *Step.Run { |
| 904 | 904 | const run_step = Step.Run.create(b, b.fmt("run {s}", .{exe.name})); |
| 905 | 905 | run_step.addArtifactArg(exe); |
| 906 | 906 | |
| 907 | if (exe.kind == .@"test") { | |
| 907 | if (exe.kind == .@"test" and exe.test_server_mode) { | |
| 908 | 908 | run_step.enableTestRunnerMode(); |
| 909 | 909 | } |
| 910 | 910 |
lib/std/Build/Step/Compile.zig+2| ... | ... | @@ -73,6 +73,7 @@ exec_cmd_args: ?[]const ?[]const u8, |
| 73 | 73 | filter: ?[]const u8, |
| 74 | 74 | test_evented_io: bool = false, |
| 75 | 75 | test_runner: ?[]const u8, |
| 76 | test_server_mode: bool, | |
| 76 | 77 | code_model: std.builtin.CodeModel = .default, |
| 77 | 78 | wasi_exec_model: ?std.builtin.WasiExecModel = null, |
| 78 | 79 | /// Symbols to be exported when compiling to wasm |
| ... | ... | @@ -499,6 +500,7 @@ pub fn create(owner: *std.Build, options: Options) *Compile { |
| 499 | 500 | .exec_cmd_args = null, |
| 500 | 501 | .filter = options.filter, |
| 501 | 502 | .test_runner = options.test_runner, |
| 503 | .test_server_mode = options.test_runner == null, | |
| 502 | 504 | .disable_stack_probing = false, |
| 503 | 505 | .disable_sanitize_c = false, |
| 504 | 506 | .sanitize_thread = false, |