mirror of
https://github.com/ziglang/zig.git
synced 2024-12-01 01:22:50 +00:00
17 lines
443 B
Zig
17 lines
443 B
Zig
|
const Builder = @import("std").build.Builder;
|
||
|
|
||
|
pub fn build(b: *Builder) void {
|
||
|
const mode = b.standardReleaseOptions();
|
||
|
|
||
|
const hello = b.addExecutable("hello", "hello.zig");
|
||
|
hello.setBuildMode(mode);
|
||
|
|
||
|
const main = b.addExecutable("main", "main.zig");
|
||
|
main.setBuildMode(mode);
|
||
|
const run = main.run();
|
||
|
run.addArtifactArg(hello);
|
||
|
|
||
|
const test_step = b.step("test", "Test it");
|
||
|
test_step.dependOn(&run.step);
|
||
|
}
|