diff options
| author | Loris Cro <kappaloris@gmail.com> | 2022-08-16 16:52:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-16 16:52:26 +0200 |
| commit | 7f7d58ee895d0e29850ed1823ba91e672edc03a6 (patch) | |
| tree | 7bd7515a24e5eafa8c4a95332908e6e5e41ffa47 /src/Compilation.zig | |
| parent | 5929da37a117dfe67983155b39d4ee39e11f7ebc (diff) | |
| parent | b3922289be1ffaf194b55face332892280981356 (diff) | |
| download | zig-7f7d58ee895d0e29850ed1823ba91e672edc03a6.tar.gz zig-7f7d58ee895d0e29850ed1823ba91e672edc03a6.zip | |
Merge branch 'master' into autodoc-links
Diffstat (limited to 'src/Compilation.zig')
| -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; }; |
