Fix environment for bundle command

This commit is contained in:
Bob Farrell 2024-11-10 22:24:27 +00:00
parent bd577cc4c2
commit d219a3ce83

View File

@ -176,7 +176,7 @@ fn zig_build_install(allocator: std.mem.Allocator, path: []const u8, options: Op
var install_argv = std.ArrayList([]const u8).init(allocator); var install_argv = std.ArrayList([]const u8).init(allocator);
defer install_argv.deinit(); defer install_argv.deinit();
try install_argv.appendSlice(&[_][]const u8{ "zig", "build" }); try install_argv.appendSlice(&[_][]const u8{ "zig", "build", "-Denvironment=production" });
switch (options.optimize) { switch (options.optimize) {
.ReleaseFast => try install_argv.append("-Doptimize=ReleaseFast"), .ReleaseFast => try install_argv.append("-Doptimize=ReleaseFast"),