mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
27 lines
666 B
Zig
27 lines
666 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 builtin.cpu.arch == .aarch64) {
|
|
// https://github.com/ziglang/zig/issues/13685
|
|
return;
|
|
}
|
|
|
|
const main = b.addExecutable(.{
|
|
.name = "main",
|
|
.root_source_file = b.path("main.zig"),
|
|
.target = b.host,
|
|
.optimize = optimize,
|
|
});
|
|
|
|
const run = b.addRunArtifact(main);
|
|
run.clearEnvironment();
|
|
|
|
test_step.dependOn(&run.step);
|
|
}
|