From 2387305b23006f23eb16d0512321c612f46abcab Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 4 Jun 2025 10:33:52 -0700 Subject: [PATCH] Compilation.Config: "can_use_llvm" -> "prefer_llvm" --- src/Compilation/Config.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Compilation/Config.zig b/src/Compilation/Config.zig index b6d16d57ec5bd2722e90051df197dcab1634978d..850055a5aef9b1ee669551847d3fc79f48c2fb3a 100644 --- a/src/Compilation/Config.zig +++ b/src/Compilation/Config.zig @@ -195,7 +195,7 @@ pub fn resolve(options: Options) ResolveError!Config { // Note that using the LLVM backend does not necessarily mean using LLVM libraries. // For example, Zig can emit .bc and .ll files directly, and this is still considered // using "the LLVM backend". - const can_use_llvm = b: { + const prefer_llvm = b: { // If emitting to LLVM bitcode object format, must use LLVM backend. if (options.emit_llvm_ir or options.emit_llvm_bc) { if (options.use_llvm == false) @@ -238,7 +238,7 @@ pub fn resolve(options: Options) ResolveError!Config { // If we have no zig code to compile, no need for LLVM. if (!options.have_zcu) break :b false; - break :b can_use_llvm; + break :b prefer_llvm; }; if (options.emit_bin and options.have_zcu) { @@ -277,7 +277,7 @@ pub fn resolve(options: Options) ResolveError!Config { } if (options.use_lld) |x| break :b x; - break :b can_use_llvm; + break :b prefer_llvm; }; // Make a decision on whether to use Clang or Aro for translate-c and compiling C files. -- 2.54.0