diff options
| author | Douglas Katzman <dougk@google.com> | 2016-10-25 23:02:30 +0000 |
|---|---|---|
| committer | Douglas Katzman <dougk@google.com> | 2016-10-25 23:02:30 +0000 |
| commit | 1e04e46c7a32ebbb4b3a90327d37d1c1a19f76a9 (patch) | |
| tree | 8b256e415cdee4a1a472d6c3fc3be73edd16427a /clang/lib/Driver/ToolChains.cpp | |
| parent | 497fd941092436346435e0a5367341e434fbd1d4 (diff) | |
| download | bcm5719-llvm-1e04e46c7a32ebbb4b3a90327d37d1c1a19f76a9.tar.gz bcm5719-llvm-1e04e46c7a32ebbb4b3a90327d37d1c1a19f76a9.zip | |
[Myriad] Find libc++ adjacent to libstdc++
llvm-svn: 285140
Diffstat (limited to 'clang/lib/Driver/ToolChains.cpp')
| -rw-r--r-- | clang/lib/Driver/ToolChains.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp index 509f6d9535a..b8fbb30f244 100644 --- a/clang/lib/Driver/ToolChains.cpp +++ b/clang/lib/Driver/ToolChains.cpp @@ -5169,18 +5169,13 @@ MyriadToolChain::MyriadToolChain(const Driver &D, const llvm::Triple &Triple, } if (GCCInstallation.isValid()) { - // The contents of LibDir are independent of the version of gcc. - // This contains libc, libg, libm, libstdc++, libssp. - // The 'ma1x00' and 'nofpu' variants are irrelevant. - SmallString<128> LibDir(GCCInstallation.getParentLibPath()); - llvm::sys::path::append(LibDir, "../sparc-myriad-elf/lib"); - addPathIfExists(D, LibDir, getFilePaths()); - // This directory contains crt{i,n,begin,end}.o as well as libgcc. // These files are tied to a particular version of gcc. SmallString<128> CompilerSupportDir(GCCInstallation.getInstallPath()); addPathIfExists(D, CompilerSupportDir, getFilePaths()); } + // libstd++ and libc++ must both be found in this one place. + addPathIfExists(D, D.Dir + "/../sparc-myriad-elf/lib", getFilePaths()); } MyriadToolChain::~MyriadToolChain() {} |

