mirror of
https://github.com/ziglang/zig.git
synced 2025-12-20 05:03:06 +00:00
Tests a decent amount of edge cases dealing with how PATH and PATHEXT searching is handled.
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);
|
|
}
|