authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-05-31 08:21:13+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-06-04 07:27:24+01:00
log95eb37a198271373b9c4918ce885bb959418e67e
tree1e0fbafa61e65ed8d79c9b8a815e2acb6ee0155a
parent3391ad7a9091edec0b368b0e98e61ec02043e91b
signaturelock-open Commit is signed but in an unrecognized format.

Compilation.Config: do not default to '-flld' if '-fnew-linker' given

This causes a confusing CLI error.

1 files changed, 4 insertions(+), 0 deletions(-)

src/Compilation/Config.zig+4
......@@ -409,6 +409,10 @@ pub fn resolve(options: Options) ResolveError!Config {
409409
410410 if (options.use_lld) |x| break :b x;
411411
412 // If the user didn't specify whether to use LLD but did specify to use the new linker,
413 // assume no LLD.
414 if (options.use_new_linker == true) break :b false;
415
412416 // If we have no zig code to compile, no need for the self-hosted linker.
413417 if (!options.have_zcu) break :b true;
414418