mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
I was too optimistic in disabling the aarch64 skip, assuming it was also caused by ConEmu. Unfortunately I don't have access to a machine for testing.
34 lines
988 B
Zig
34 lines
988 B
Zig
const std = @import("std");
|
|
const builtin = @import("builtin");
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const test_step = b.step("test", "Test it");
|
|
b.default_step = test_step;
|
|
|
|
const optimize: std.builtin.OptimizeMode = .Debug;
|
|
|
|
if (builtin.os.tag == .windows and
|
|
// https://github.com/ziglang/zig/issues/13685
|
|
(builtin.cpu.arch == .aarch64 or
|
|
// 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.
|
|
std.process.hasEnvVarConstant("ConEmuHWND")))
|
|
{
|
|
return;
|
|
}
|
|
|
|
const main = b.addExecutable(.{
|
|
.name = "main",
|
|
.root_source_file = b.path("main.zig"),
|
|
.target = b.graph.host,
|
|
.optimize = optimize,
|
|
});
|
|
|
|
const run = b.addRunArtifact(main);
|
|
run.clearEnvironment();
|
|
run.disable_zig_progress = true;
|
|
|
|
test_step.dependOn(&run.step);
|
|
}
|