File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
1
const std = @import ("std" );
2
- const Builder = std .build .Builder ;
3
2
4
- pub fn build (b : * Builder ) void {
3
+ pub fn build (b : * std.Build ) void {
5
4
// Standard target options allows the person running `zig build` to choose
6
5
// what target to build for. Here we do not override the defaults, which
7
6
// means any target is allowed, and the default is native. Other options
@@ -19,10 +18,9 @@ pub fn build(b: *Builder) void {
19
18
.optimize = std .builtin .Mode .ReleaseFast ,
20
19
});
21
20
exe .linkLibC ();
22
- // exe.setOutputDir("out");
23
- exe .install ();
21
+ b .installArtifact (exe );
24
22
25
- const run_cmd = exe . run ( );
23
+ const run_cmd = b . addRunArtifact ( exe );
26
24
run_cmd .step .dependOn (b .getInstallStep ());
27
25
if (b .args ) | args | {
28
26
run_cmd .addArgs (args );
You can’t perform that action at this time.
0 commit comments