aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig4
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;
};