You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make clang/test/Index/pch-from-libclang.c pass in more places
- fixes the test on macOS with LLVM_ENABLE_PIC=OFF
- together with D57343, gets the test to pass on Windows
- makes it run everywhere (it seems to just pass on Linux)
The main change is to pull out the resource directory computation into a
function shared by all 3 places that do it. In CIndexer.cpp, this now works no
matter if libclang is in lib/ or bin/ or statically linked to a binary in bin/.
Differential Revision: https://reviews.llvm.org/D57345
llvm-svn: 352803
Copy file name to clipboardExpand all lines: clang/test/Index/pch-from-libclang.c
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,11 @@
1
1
// Check that clang can use a PCH created from libclang.
2
2
3
-
// FIXME: Non-darwin bots fail. Would need investigation using -module-file-info to see what is the difference in modules generated from libclang vs the compiler invocation, in those systems.
4
-
// REQUIRES: system-darwin
3
+
// This test doesn't use -fdisable-module-hash and hence requires that
4
+
// CompilerInvocation::getModuleHash() computes exactly the same hash
5
+
// for c-index-test and clang, which in turn requires that the both use
6
+
// exactly the same resource-dir, even without calling realpath() on it:
7
+
// - a/../b/ and b/ are not considered the same
8
+
// - on Windows, c:\ and C:\ (only different in case) are not the same
0 commit comments