diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2010-01-27 07:37:16 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2010-01-27 07:37:16 +0000 |
commit | 2370ec6513d0728535b764fc93b572b651f8af05 (patch) | |
tree | 6a4dc7377dc6534d78411dc22ec3b1f9b3c31bca /clang | |
parent | bc1e6f08730159e7de2d5d8c5e48c96fe0146650 (diff) | |
download | bcm5719-llvm-2370ec6513d0728535b764fc93b572b651f8af05.tar.gz bcm5719-llvm-2370ec6513d0728535b764fc93b572b651f8af05.zip |
Fix libCIndex.so's lookup of the clang executable on CMake out-of-tree builds.
llvm-svn: 94668
Diffstat (limited to 'clang')
-rw-r--r-- | clang/tools/CIndex/CIndexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/CIndex/CIndexer.cpp b/clang/tools/CIndex/CIndexer.cpp index 53636a4ff35..21027999e6d 100644 --- a/clang/tools/CIndex/CIndexer.cpp +++ b/clang/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 |