From 9656ec271c3ca1009c48c26a9a5c407d98bbcacd Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 10 Aug 2022 16:24:04 -0700 Subject: better default for use_stage1 when -ofmt=c is provided --- src/Compilation.zig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Compilation.zig') diff --git a/src/Compilation.zig b/src/Compilation.zig index d3816e542c..af39154a3f 100644 --- a/src/Compilation.zig +++ b/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; }; -- cgit v1.2.3