aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-01-27 07:37:16 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-01-27 07:37:16 +0000
commitf1f70b479cffa9a96bbd4f9a111343a94e27a6c2 (patch)
treefe1e306356417cb9a497bcc1f3b50b35f4e07215
parent1b3c0298c5ffacd101295fd7c9d80d801182bc36 (diff)
Fix libCIndex.so's lookup of the clang executable on CMake out-of-tree builds.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94668 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/CIndex/CIndexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/CIndex/CIndexer.cpp b/tools/CIndex/CIndexer.cpp
index 53636a4ff3..21027999e6 100644
--- a/tools/CIndex/CIndexer.cpp
+++ b/tools/CIndex/CIndexer.cpp
@@ -69,7 +69,7 @@ const llvm::sys::Path& CIndexer::getClangPath() {
// We now have the CIndex directory, locate clang relative to it.
CIndexPath.eraseComponent();
- CIndexPath.eraseComponent();
+ CIndexPath.appendComponent("..");
CIndexPath.appendComponent("bin");
CIndexPath.appendComponent("clang");
#endif