summaryrefslogtreecommitdiff
path: root/community/llvm/clang-2.8-cindexer-clang-path.patch
blob: e283009e9fea2f8394d3a83acec491d16fa524c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff -upr clang-2.8.orig/tools/libclang/CIndexer.cpp clang-2.8/tools/libclang/CIndexer.cpp
--- clang-2.8.orig/tools/libclang/CIndexer.cpp	2010-05-27 23:16:37.000000000 +0300
+++ clang-2.8/tools/libclang/CIndexer.cpp	2011-02-11 01:14:20.000000000 +0200
@@ -68,7 +68,8 @@ const llvm::sys::Path& CIndexer::getClan
 
   // We now have the CIndex directory, locate clang relative to it.
   CIndexPath.eraseComponent();
-  CIndexPath.appendComponent("..");
+  CIndexPath.eraseComponent();
+  CIndexPath.eraseComponent();
   CIndexPath.appendComponent("bin");
   CIndexPath.appendComponent("clang");
 #endif