Commit 9656ec271c

Andrew Kelley <andrew@ziglang.org>
2022-08-11 01:24:04
better default for use_stage1 when -ofmt=c is provided
1 parent 173952f
Changed files (1)
src/Compilation.zig
@@ -1041,6 +1041,10 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation {
                 }
             }
 
+            // If LLVM does not support the target, then we can't use it.
+            if (!target_util.hasLlvmSupport(options.target, ofmt))
+                break :blk false;
+
             break :blk build_options.is_stage1;
         };