2023-12-18 17:35:44 +01:00

23 lines
498 B
Plaintext

const std = #import("std");
const assert = std.assert;
const Executable = std.build.Executable;
const main = fn () s32 {
const executable = Executable{
.target = .{
.cpu = .x86_64,
.os = .linux,
.abi = .gnu,
},
.main_source_path = "src/main.nat",
.link_libc = true,
};
if (executable.compile()) {
return 0;
} else {
std.print(bytes = "Executable failed to compile!\n");
return 1;
}
}