diff --git a/build.zig b/build.zig index ff3ecb48ff1bfc09c020a4f7b5039fb206858278..46bd0b8ebbbce7c0082371f63151469c9d4832da 100644 --- a/build.zig +++ b/build.zig @@ -5,7 +5,8 @@ const deps = @import("./deps.zig"); pub fn build(b: *std.build.Builder) void { b.prominent_compile_errors = true; - b.use_stage1 = true; // currently blocked on https://github.com/ziglang/zig/issues/12403 + // currently blocked on https://github.com/ziglang/zig/issues/12403 + b.use_stage1 = !(b.option(bool, "stage2", "use the stage2 compiler") orelse false); const target = b.standardTargetOptions(.{}); b.setPreferredReleaseMode(.ReleaseSafe);