zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 71950f8c347baeccce09acb71b8966ec1cd1ea3b (tree)
parent d6386772daff1cd3932cc1f177be38b6c90c2e3b
Author: pentuppup <pentuppup@noreply.codeberg.org>
Date:   Sat, 21 Feb 2026 15:58:13 -0500

fix error when trying to use LLD with self-hosted backend

Diffstat:
Msrc/Compilation/Config.zig | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Compilation/Config.zig b/src/Compilation/Config.zig @@ -400,7 +400,9 @@ pub fn resolve(options: Options) ResolveError!Config { break :b true; } - if (options.use_llvm == false) { + // If there's no ZCU we aren't using the LLVM backend but + // it shouldn't influence which linker we pick + if (!use_llvm and options.have_zcu) { if (options.use_lld == true) return error.LldCannotIncrementallyLink; break :b false; }