https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111605
--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:1c6d6b34b112b52566ebde49afef3e6eb747ef90 commit r14-5281-g1c6d6b34b112b52566ebde49afef3e6eb747ef90 Author: Tatsuyuki Ishi <ishitatsuy...@gmail.com> Date: Mon Oct 16 14:04:12 2023 +0900 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.