| ... | @@ -7,11 +7,11 @@ pub fn build(b: *std.Build) void { | ... | @@ -7,11 +7,11 @@ pub fn build(b: *std.Build) void { |
| 7 | for ([_][]const u8{ "aarch64-linux-gnu.2.27", "aarch64-linux-gnu.2.34" }) |t| { | 7 | for ([_][]const u8{ "aarch64-linux-gnu.2.27", "aarch64-linux-gnu.2.34" }) |t| { |
| 8 | const exe = b.addExecutable(.{ | 8 | const exe = b.addExecutable(.{ |
| 9 | .name = t, | 9 | .name = t, |
| 10 | .root_source_file = .{ .path = "main.c" }, | | |
| 11 | .target = b.resolveTargetQuery(std.Target.Query.parse( | 10 | .target = b.resolveTargetQuery(std.Target.Query.parse( |
| 12 | .{ .arch_os_abi = t }, | 11 | .{ .arch_os_abi = t }, |
| 13 | ) catch unreachable), | 12 | ) catch unreachable), |
| 14 | }); | 13 | }); |
| | 14 | exe.addCSourceFile(.{ .file = .{ .path = "main.c" } }); |
| 15 | exe.linkLibC(); | 15 | exe.linkLibC(); |
| 16 | // TODO: actually test the output | 16 | // TODO: actually test the output |
| 17 | _ = exe.getEmittedBin(); | 17 | _ = exe.getEmittedBin(); |