diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-08-10 16:24:04 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-08-10 16:24:04 -0700 |
| commit | 9656ec271c3ca1009c48c26a9a5c407d98bbcacd (patch) | |
| tree | 29ba61893922aa914a846c0be32c2af9b2998f8c /src | |
| parent | 173952f4b82713712fde873ffa31decb53ad4450 (diff) | |
| download | zig-9656ec271c3ca1009c48c26a9a5c407d98bbcacd.tar.gz zig-9656ec271c3ca1009c48c26a9a5c407d98bbcacd.zip | |
better default for use_stage1 when -ofmt=c is provided
Diffstat (limited to 'src')
| -rw-r--r-- | src/Compilation.zig | 4 |
1 files changed, 4 insertions, 0 deletions
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; }; |
