mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
build.zig: use InstallArtifact Options instead of mutation
I expect this to have no functional change.
This commit is contained in:
parent
aef8bcf776
commit
6ce37845af
1 changed files with 3 additions and 4 deletions
|
|
@ -204,10 +204,9 @@ pub fn build(b: *std.Build) !void {
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!no_bin) {
|
if (!no_bin) {
|
||||||
const install_exe = b.addInstallArtifact(exe, .{});
|
const install_exe = b.addInstallArtifact(exe, .{
|
||||||
if (flat) {
|
.dest_dir = if (flat) .{ .override = .prefix } else .default,
|
||||||
install_exe.dest_dir = .prefix;
|
});
|
||||||
}
|
|
||||||
b.getInstallStep().dependOn(&install_exe.step);
|
b.getInstallStep().dependOn(&install_exe.step);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue