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

26 lines
561 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",
.name = "first_build",
};
if (executable.compile()) {
} else {
std.print(bytes = "Executable failed to compile!\n");
return Error.unexpected_result;
}
}