top | item 29573117

(no title)

fbernier | 4 years ago

-fuse-ld has been replaced by --ld-path in clang 12+

discuss

order

the_duke|4 years ago

Good to know, thanks.

fuse-ld still works though.

wyldfire|4 years ago

I wonder -- "-fuse-ld" has some somewhat surprising behavior in how clang ends up discovering the linker. I think that even if clang has a sibling `lld` in the same distribution, "-fuse-ld=lld" will pick "ld.lld" from the $PATH if it's present in there before the directory where clang and lld are installed.

So maybe that "--ld-path" option helps resolve ambiguity by expecting an explicit path instead of a linker name.