| ... | @@ -22,9 +22,7 @@ pub fn build(b: *std.Build) !void { | ... | @@ -22,9 +22,7 @@ pub fn build(b: *std.Build) !void { |
| 22 | break :t b.standardTargetOptions(.{ .default_target = default_target }); | 22 | break :t b.standardTargetOptions(.{ .default_target = default_target }); |
| 23 | }; | 23 | }; |
| 24 | | 24 | |
| 25 | // TODO remove type annotation with ziglang/zig#13749 | 25 | const optimize = b.standardOptimizeOption(.{}); |
| 26 | const optimize: std.builtin.Mode = b.option(std.builtin.Mode, "optimize", "Prioritize performance, safety, or binary size (-O flag)") orelse | | |
| 27 | if (target.getCpuArch() == .wasm32) .ReleaseSmall else .Debug; | | |
| 28 | | 26 | |
| 29 | const single_threaded = b.option(bool, "single-threaded", "Build artifacts that run in single threaded mode"); | 27 | const single_threaded = b.option(bool, "single-threaded", "Build artifacts that run in single threaded mode"); |
| 30 | const use_zig_libcxx = b.option(bool, "use-zig-libcxx", "If libc++ is needed, use zig's bundled version, don't try to integrate with the system") orelse false; | 28 | const use_zig_libcxx = b.option(bool, "use-zig-libcxx", "If libc++ is needed, use zig's bundled version, don't try to integrate with the system") orelse false; |