authorgravatar for pentuppup@noreply.codeberg.orgpentuppup <pentuppup@noreply.codeberg.org> 2026-02-21 15:58:13-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-31 09:42:38+02:00
log71950f8c347baeccce09acb71b8966ec1cd1ea3b
treebbbc5ace4f625595e73101b965bdfb014b7b6d87
parentd6386772daff1cd3932cc1f177be38b6c90c2e3b

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


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

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