| ... | ... | @@ -841,6 +841,12 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { |
| 841 | 841 | if (options.main_mod == null) |
| 842 | 842 | break :blk false; |
| 843 | 843 | |
| 844 | // If we cannot use LLVM libraries, then our own backends will be a |
| 845 | // better default since the LLVM backend can only produce bitcode |
| 846 | // and not an object file or executable. |
| 847 | if (!use_lib_llvm) |
| 848 | break :blk false; |
| 849 | |
| 844 | 850 | // If LLVM does not support the target, then we can't use it. |
| 845 | 851 | if (!target_util.hasLlvmSupport(options.target, options.target.ofmt)) |
| 846 | 852 | break :blk false; |