forked from OSchip/llvm-project
[Driver] Try normalized triple when looking for C++ libraries
This addresses the issue introduced in r361432 where we would only try effective triple but not the normalized one as we do for other runtimes. Differential Revision: https://reviews.llvm.org/D62286 llvm-svn: 361504
This commit is contained in:
parent
85200645c6
commit
762d008a7c
|
@ -80,6 +80,11 @@ ToolChain::ToolChain(const Driver &D, const llvm::Triple &T,
|
|||
llvm::sys::path::append(P, "..", "lib", D.getTargetTriple(), "c++");
|
||||
if (getVFS().exists(P))
|
||||
getLibraryPaths().push_back(P.str());
|
||||
|
||||
P.assign(D.Dir);
|
||||
llvm::sys::path::append(P, "..", "lib", Triple.str(), "c++");
|
||||
if (getVFS().exists(P))
|
||||
getLibraryPaths().push_back(P.str());
|
||||
}
|
||||
|
||||
P.assign(D.ResourceDir);
|
||||
|
|
Loading…
Reference in New Issue