diff --git a/src/Compilation.zig b/src/Compilation.zig index d3816e542cfecf8969f9b37ed9975a214e5851e3..af39154a3f233e43fbe7c80c19599f43312f4f08 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; };