authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-08-02 15:19:26-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-08-03 09:52:15-07:00
log6ce37845af63245269efa9a959920802ce715e09
tree898230e179afe34e2f481945e2078b21f7ba6604
parentaef8bcf7763cd098201d6b4b4c3e9e447188ae43

build.zig: use InstallArtifact Options instead of mutation

I expect this to have no functional change.

1 files changed, 3 insertions(+), 4 deletions(-)

build.zig+3-4
...@@ -204,10 +204,9 @@ pub fn build(b: *std.Build) !void {...@@ -204,10 +204,9 @@ pub fn build(b: *std.Build) !void {
204 );204 );
205205
206 if (!no_bin) {206 if (!no_bin) {
207 const install_exe = b.addInstallArtifact(exe, .{});207 const install_exe = b.addInstallArtifact(exe, .{
208 if (flat) {208 .dest_dir = if (flat) .{ .override = .prefix } else .default,
209 install_exe.dest_dir = .prefix;209 });
210 }
211 b.getInstallStep().dependOn(&install_exe.step);210 b.getInstallStep().dependOn(&install_exe.step);
212 }211 }
213212