Install clang-cc to libexec/clang-cc (instead of bin/clang-cc).
- Updated ccc & driver to look in libexec/ for tools.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67607 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp
index eac72ee..d4e8e93 100644
--- a/lib/Driver/ToolChains.cpp
+++ b/lib/Driver/ToolChains.cpp
@@ -74,6 +74,10 @@
Path += getToolChainDir();
getProgramPaths().push_back(Path);
+ Path = getHost().getDriver().Dir;
+ Path += "/../libexec";
+ getProgramPaths().push_back(Path);
+
getProgramPaths().push_back(getHost().getDriver().Dir);
}
@@ -151,6 +155,10 @@
const char *Platform, const char *OS)
: ToolChain(Host, Arch, Platform, OS)
{
+ std::string Path(getHost().getDriver().Dir);
+ Path += "/../libexec";
+ getProgramPaths().push_back(Path);
+
getProgramPaths().push_back(getHost().getDriver().Dir);
}