[clang] [clang] recognize any *-ld.lld variant (PR #117338)
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 22 14:52:44 PST 2024
================
@@ -974,8 +974,11 @@ std::string ToolChain::GetLinkerPath(bool *LinkerIsLLD) const {
if (llvm::sys::path::parent_path(Path).empty())
Path = GetProgramPath(A->getValue());
if (llvm::sys::fs::can_execute(Path)) {
+ SmallString<1024> RealPath;
+ if (llvm::sys::fs::real_path(Path, RealPath))
----------------
MaskRay wrote:
We should not make an extra syscall when `UseLinker == "lld"`
https://github.com/llvm/llvm-project/pull/117338
More information about the cfe-commits
mailing list