Does cl.exe to this if you're on a case-sensitive file system? Why are you
using a case-sensitive file system if you want case-insensitive behavior?


On Wed, Mar 5, 2014 at 12:47 PM, Saleem Abdulrasool <[email protected]> wrote:

> 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
>
> _______________________________________________
> cfe-commits mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to