mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 13:30:45 +00:00
CLI repl: "run" command handles cross compiled binaries
with an appropriate error message, and does not terminate the repl.
This commit is contained in:
parent
a854795f52
commit
2cee19ab21
@ -2121,8 +2121,11 @@ fn runOrTest(
|
||||
if (!watch) return cleanExit();
|
||||
return;
|
||||
},
|
||||
.run => fatal("unable to execute {s}: non-native", .{exe_path}),
|
||||
else => unreachable,
|
||||
else => {
|
||||
std.log.err("unable to execute {s}: non-native", .{exe_path});
|
||||
if (!watch) process.exit(1);
|
||||
return;
|
||||
},
|
||||
}
|
||||
}
|
||||
// when testing pass the zig_exe_path to argv
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user