mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
21 lines
642 B
Zig
21 lines
642 B
Zig
const std = @import("std");
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const test_step = b.step("test", "Test");
|
|
b.default_step = test_step;
|
|
|
|
for ([_][]const u8{ "aarch64-linux-gnu.2.27", "aarch64-linux-gnu.2.34" }) |t| {
|
|
const exe = b.addExecutable(.{
|
|
.name = t,
|
|
.root_source_file = .{ .path = "main.c" },
|
|
.target = b.resolveTargetQuery(std.Target.Query.parse(
|
|
.{ .arch_os_abi = t },
|
|
) catch unreachable),
|
|
});
|
|
exe.linkLibC();
|
|
// TODO: actually test the output
|
|
_ = exe.getEmittedBin();
|
|
test_step.dependOn(&exe.step);
|
|
}
|
|
}
|