Do not prepend target triple to -fuse-ld=lld,mold.
commit1c6d6b34b112b52566ebde49afef3e6eb747ef90
authorTatsuyuki Ishi <ishitatsuyuki@gmail.com>
Mon, 16 Oct 2023 05:04:12 +0000 (16 14:04 +0900)
committerRichard Biener <rguenther@suse.de>
Thu, 9 Nov 2023 13:03:18 +0000 (9 14:03 +0100)
treebd228d76f89fed4e2fdb7e45159163ffa49e5f66
parentfd8e5f3c430f37c99ddcc00fcafc1a12b3475a3a
Do not prepend target triple to -fuse-ld=lld,mold.

lld and mold are platform-agnostic and not prefixed with target triple.
Prepending the target triple makes it less likely to find the intended
linker executable.

A potential breaking change is that we no longer try to search for
triple-prefixed lld/mold binaries anymore. However, since there doesn't
seem to be support to build LLVM or mold with triple-prefixed executable
names, it seems better to just not bother with that case.

PR driver/111605
* collect2.cc (main): Do not prepend target triple to
-fuse-ld=lld,mold.
gcc/collect2.cc