all: use std.Build.installArtifact

This commit is contained in:
Vivek Roy 2023-04-13 16:53:31 -07:00 committed by Stephen Gutekanst
parent beef56a023
commit ff0258f27d
16 changed files with 53 additions and 53 deletions

View file

@ -30,8 +30,8 @@ pub fn Sdk(comptime deps: anytype) type {
.optimize = optimize,
});
link(b, main_tests, .{});
main_tests.install();
return main_tests.run();
b.installArtifact(main_tests);
return b.addRunArtifact(main_tests);
}
pub fn link(b: *std.Build, step: *std.build.CompileStep, options: Options) void {
@ -48,7 +48,7 @@ pub fn Sdk(comptime deps: anytype) type {
}
}
if (options.install_libs) {
step.install();
b.installArtifact(step);
}
}