]> granicus.if.org Git - clang/commitdiff
Fix libCIndex.so's lookup of the clang executable on CMake out-of-tree builds.
authorChandler Carruth <chandlerc@gmail.com>
Wed, 27 Jan 2010 07:37:16 +0000 (07:37 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 27 Jan 2010 07:37:16 +0000 (07:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94668 91177308-0d34-0410-b5e6-96231b3b80d8

tools/CIndex/CIndexer.cpp

index 53636a4ff35178407e03bf97b2373232b131347a..21027999e6d058c213e3a38ba7bfb743caaf7e5f 100644 (file)
@@ -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