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 11const std = @import ("std" );
2- const Builder = std .build .Builder ;
32
4- pub fn build (b : * Builder ) void {
3+ pub fn build (b : * std.Build ) void {
54 // Standard target options allows the person running `zig build` to choose
65 // what target to build for. Here we do not override the defaults, which
76 // means any target is allowed, and the default is native. Other options
@@ -19,10 +18,9 @@ pub fn build(b: *Builder) void {
1918 .optimize = std .builtin .Mode .ReleaseFast ,
2019 });
2120 exe .linkLibC ();
22- // exe.setOutputDir("out");
23- exe .install ();
21+ b .installArtifact (exe );
2422
25- const run_cmd = exe . run ( );
23+ const run_cmd = b . addRunArtifact ( exe );
2624 run_cmd .step .dependOn (b .getInstallStep ());
2725 if (b .args ) | args | {
2826 run_cmd .addArgs (args );
You can’t perform that action at this time.
0 commit comments