From: Chandler Carruth Date: Wed, 27 Jan 2010 07:37:16 +0000 (+0000) Subject: Fix libCIndex.so's lookup of the clang executable on CMake out-of-tree builds. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1f70b479cffa9a96bbd4f9a111343a94e27a6c2;p=clang 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 --- 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