22 lines
471 B
Plaintext
22 lines
471 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",
|
|
};
|
|
|
|
if (executable.compile()) {
|
|
return 0;
|
|
} else {
|
|
std.print(bytes = "Executable failed to compile!\n");
|
|
return 1;
|
|
}
|
|
}
|