| ... | @@ -1109,6 +1109,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { | ... | @@ -1109,6 +1109,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { |
| 1109 | const root_name = try arena.dupeZ(u8, options.root_name); | 1109 | const root_name = try arena.dupeZ(u8, options.root_name); |
| 1110 | | 1110 | |
| 1111 | const use_stage1 = options.use_stage1 orelse false; | 1111 | const use_stage1 = options.use_stage1 orelse false; |
| | 1112 | if (use_stage1 and !build_options.have_stage1) return error.ZigCompilerBuiltWithoutStage1; |
| 1112 | | 1113 | |
| 1113 | // Make a decision on whether to use LLVM or our own backend. | 1114 | // Make a decision on whether to use LLVM or our own backend. |
| 1114 | const use_llvm = build_options.have_llvm and blk: { | 1115 | const use_llvm = build_options.have_llvm and blk: { |