2024-02-27 10:58:05 -06:00

27 lines
586 B
Plaintext

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