subsecond/cli: fix linker and passing through -fuse-ld properly (#4222)

* subsecond/cli: fix passing through -fuse-ld for LinkerFlavour::Gnu

* if linker isn't a relative, local path, keep it unresolved since its a command on PATH
This commit is contained in:
laund authored and GitHub committed 2025-05-30 13:06:57 +02:00
1 parent 3a5b68e56d
commit 937e9b9789
2 files changed
+5 -1

No files matched your search

+1
View File
@@ -1488,6 +1488,7 @@ impl BuildRequest {
|| arg.starts_with("-m")
|| arg.starts_with("-Wl,--target=")
|| arg.starts_with("-Wl,-fuse-ld")
|| arg.starts_with("-fuse-ld")
{
out_args.push(arg.to_string());
}