nativity/test/build/first/build.nat
David Gonzalez Martin 6ae42e05c5 Make build work
2024-02-21 18:32:42 -06:00

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