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 {
195195 // Note that using the LLVM backend does not necessarily mean using LLVM libraries.
196196 // For example, Zig can emit .bc and .ll files directly, and this is still considered
197197 // using "the LLVM backend".
198 const can_use_llvm = b: {
198 const prefer_llvm = b: {
199199 // If emitting to LLVM bitcode object format, must use LLVM backend.
200200 if (options.emit_llvm_ir or options.emit_llvm_bc) {
201201 if (options.use_llvm == false)
......@@ -238,7 +238,7 @@ pub fn resolve(options: Options) ResolveError!Config {
238238 // If we have no zig code to compile, no need for LLVM.
239239 if (!options.have_zcu) break :b false;
240240
241 break :b can_use_llvm;
241 break :b prefer_llvm;
242242 };
243243
244244 if (options.emit_bin and options.have_zcu) {
......@@ -277,7 +277,7 @@ pub fn resolve(options: Options) ResolveError!Config {
277277 }
278278
279279 if (options.use_lld) |x| break :b x;
280 break :b can_use_llvm;
280 break :b prefer_llvm;
281281 };
282282
283283 // Make a decision on whether to use Clang or Aro for translate-c and compiling C files.