| ... | ... | @@ -1049,10 +1049,14 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { |
| 1049 | 1049 | |
| 1050 | 1050 | // Make a decision on whether to use Clang or Aro for translate-c and compiling C files. |
| 1051 | 1051 | const c_frontend: CFrontend = blk: { |
| 1052 | | if (!build_options.have_llvm) break :blk .aro; |
| 1053 | | if (options.use_clang) |explicit| if (explicit) break :blk .clang; |
| 1054 | | break :blk .clang; |
| 1052 | if (options.use_clang) |want_clang| { |
| 1053 | break :blk if (want_clang) .clang else .aro; |
| 1054 | } |
| 1055 | break :blk if (build_options.have_llvm) .clang else .aro; |
| 1055 | 1056 | }; |
| 1057 | if (!build_options.have_llvm and c_frontend == .clang) { |
| 1058 | return error.ZigCompilerNotBuiltWithLLVMExtensions; |
| 1059 | } |
| 1056 | 1060 | |
| 1057 | 1061 | const is_safe_mode = switch (options.optimize_mode) { |
| 1058 | 1062 | .Debug, .ReleaseSafe => true, |