authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-06-04 10:33:52-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-06-06 23:42:14-07:00
log2387305b23006f23eb16d0512321c612f46abcab
tree4de5c05276b0fdd61e94e74057e6b98396f0087f
parenta59d18779fe71ea0a13899e794ce1de8b526a8a9

Compilation.Config: "can_use_llvm" -> "prefer_llvm"


1 files changed, 3 insertions(+), 3 deletions(-)

src/Compilation/Config.zig+3-3
...@@ -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 considered196 // 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;
240240
241 break :b can_use_llvm;241 break :b prefer_llvm;
242 };242 };
243243
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 }
278278
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 };
282282
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.