all: use std.Build.installArtifact
This commit is contained in:
parent
beef56a023
commit
ff0258f27d
16 changed files with 53 additions and 53 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue