zig/test/standalone/empty_env/build.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);
}