| ... | @@ -195,7 +195,7 @@ pub fn resolve(options: Options) ResolveError!Config { | ... | @@ -195,7 +195,7 @@ pub fn resolve(options: Options) ResolveError!Config { |
| 195 | // Note that using the LLVM backend does not necessarily mean using LLVM libraries. | 195 | // Note that using the LLVM backend does not necessarily mean using LLVM libraries. |
| 196 | // For example, Zig can emit .bc and .ll files directly, and this is still considered | 196 | // For example, Zig can emit .bc and .ll files directly, and this is still considered |
| 197 | // using "the LLVM backend". | 197 | // using "the LLVM backend". |
| 198 | const can_use_llvm = b: { | 198 | const prefer_llvm = b: { |
| 199 | // If emitting to LLVM bitcode object format, must use LLVM backend. | 199 | // If emitting to LLVM bitcode object format, must use LLVM backend. |
| 200 | if (options.emit_llvm_ir or options.emit_llvm_bc) { | 200 | if (options.emit_llvm_ir or options.emit_llvm_bc) { |
| 201 | if (options.use_llvm == false) | 201 | if (options.use_llvm == false) |
| ... | @@ -238,7 +238,7 @@ pub fn resolve(options: Options) ResolveError!Config { | ... | @@ -238,7 +238,7 @@ pub fn resolve(options: Options) ResolveError!Config { |
| 238 | // If we have no zig code to compile, no need for LLVM. | 238 | // If we have no zig code to compile, no need for LLVM. |
| 239 | if (!options.have_zcu) break :b false; | 239 | if (!options.have_zcu) break :b false; |
| 240 | | 240 | |
| 241 | break :b can_use_llvm; | 241 | break :b prefer_llvm; |
| 242 | }; | 242 | }; |
| 243 | | 243 | |
| 244 | if (options.emit_bin and options.have_zcu) { | 244 | if (options.emit_bin and options.have_zcu) { |
| ... | @@ -277,7 +277,7 @@ pub fn resolve(options: Options) ResolveError!Config { | ... | @@ -277,7 +277,7 @@ pub fn resolve(options: Options) ResolveError!Config { |
| 277 | } | 277 | } |
| 278 | | 278 | |
| 279 | if (options.use_lld) |x| break :b x; | 279 | if (options.use_lld) |x| break :b x; |
| 280 | break :b can_use_llvm; | 280 | break :b prefer_llvm; |
| 281 | }; | 281 | }; |
| 282 | | 282 | |
| 283 | // Make a decision on whether to use Clang or Aro for translate-c and compiling C files. | 283 | // Make a decision on whether to use Clang or Aro for translate-c and compiling C files. |