[PATCH] Support case insensitive header searches for MSVCCompat
Saleem Abdulrasool
abdulras at fb.com
Wed Mar 5 12:47:25 PST 2014
Hi majnemer,
When the compiler is placed into MSVC compatibility, add a fallback mechanism
for supporting case insensitive header search. This is important when dealing
with case sensitive filesystems and building for Windows. In particular, the
Windows SDK in many places mixes up cases for filenames as well as directories.
In general, this codepath does not affect the compilation as it is a simple
boolean check. If MSVC compatibility is enabled, perform an additional stat.
If the path is inaccessible, do a case insensitive match over the contents of
the directory.
If the underlying filesystem is case-insensitive, then the stat will succeed and
the search will not be required.
http://llvm-reviews.chandlerc.com/D2972
Files:
include/clang/Lex/DirectoryLookup.h
include/clang/Lex/HeaderSearch.h
lib/Frontend/InitHeaderSearch.cpp
lib/Lex/HeaderSearch.cpp
lib/Lex/PPDirectives.cpp
unittests/Lex/PPCallbacksTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2972.1.patch
Type: text/x-patch
Size: 9432 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140305/7f20e971/attachment.bin>
More information about the cfe-commits
mailing list