mirror of
https://github.com/ziglang/zig.git
synced 2024-11-29 00:22:33 +00:00
e1fbb24d64
thanks to BenoitJGirard for pointing out the child process implementation needs 3 extra null bytes in #2031
13 lines
329 B
Zig
13 lines
329 B
Zig
const Builder = @import("std").build.Builder;
|
|
|
|
pub fn build(b: *Builder) void {
|
|
const main = b.addExecutable("main", "main.zig");
|
|
main.setBuildMode(b.standardReleaseOptions());
|
|
|
|
const run = main.run();
|
|
run.clearEnvironment();
|
|
|
|
const test_step = b.step("test", "Test it");
|
|
test_step.dependOn(&run.step);
|
|
}
|