From f1f70b479cffa9a96bbd4f9a111343a94e27a6c2 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Wed, 27 Jan 2010 07:37:16 +0000 Subject: 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 --- tools/CIndex/CIndexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/CIndex/CIndexer.cpp') 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 -- cgit v1.2.3-18-g5258