From 6ce37845af63245269efa9a959920802ce715e09 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 2 Aug 2023 15:19:26 -0700 Subject: [PATCH] build.zig: use InstallArtifact Options instead of mutation I expect this to have no functional change. --- build.zig | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/build.zig b/build.zig index ab3dcfc1b4..cb62d64da2 100644 --- a/build.zig +++ b/build.zig @@ -204,10 +204,9 @@ pub fn build(b: *std.Build) !void { ); if (!no_bin) { - const install_exe = b.addInstallArtifact(exe, .{}); - if (flat) { - install_exe.dest_dir = .prefix; - } + const install_exe = b.addInstallArtifact(exe, .{ + .dest_dir = if (flat) .{ .override = .prefix } else .default, + }); b.getInstallStep().dependOn(&install_exe.step); }