mirror of
https://github.com/ziglang/zig.git
synced 2025-12-24 07:03:11 +00:00
fix standalone/empty_env test
The problem seems to be ConEmu setting environment variables before executing the test process. The test passes when run in Windows CMD.
This commit is contained in:
parent
4b89a4c7cb
commit
f522fb9ca3
@ -7,8 +7,10 @@ pub fn build(b: *std.Build) void {
|
|||||||
|
|
||||||
const optimize: std.builtin.OptimizeMode = .Debug;
|
const optimize: std.builtin.OptimizeMode = .Debug;
|
||||||
|
|
||||||
if (builtin.os.tag == .windows and builtin.cpu.arch == .aarch64) {
|
if (builtin.os.tag == .windows and std.process.hasEnvVarConstant("ConEmuHWND")) {
|
||||||
// https://github.com/ziglang/zig/issues/13685
|
// ConEmu injects environment variables into processes before they are executed
|
||||||
|
// depending on user settings. This obviously invalidates the test, so skipping
|
||||||
|
// it is the best option.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user