[PATCH] Support case insensitive header searches for MSVCCompat
    Nico Weber 
    thakis at chromium.org
       
    Wed Mar  5 13:03:18 PST 2014
    
    
  
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 <abdulras at fb.com> 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
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140305/28e6b9f7/attachment.html>
    
    
More information about the cfe-commits
mailing list