Skip to content
Snippets Groups Projects
  • Nico Weber's avatar
    d7c9694b
    clang-cl: Remove -isystem, add -imsvc. · d7c9694b
    Nico Weber authored
    r260990 exposed -isystem in clang-cl. -isystem adds a directory to the front of
    the system include search path. The idea was to use this to point to a hermetic
    msvc install, but as it turns out this doesn't work: -isystem then adds the
    hermetic headers in front of clang's builtin headers, and clang's headers that
    are supposed to wrap msvc headers (say, stdarg.h) aren't picked up at all
    anymore.
    
    So revert that, and instead expose -imsvc which works as if the passed
    directory was part of %INCLUDE%: The header is treated as a system header, but
    it is searched after clang's lib/Header headers.
    
    Fixes half of PRPR26751.
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266108 91177308-0d34-0410-b5e6-96231b3b80d8
    d7c9694b
    History
    clang-cl: Remove -isystem, add -imsvc.
    Nico Weber authored
    r260990 exposed -isystem in clang-cl. -isystem adds a directory to the front of
    the system include search path. The idea was to use this to point to a hermetic
    msvc install, but as it turns out this doesn't work: -isystem then adds the
    hermetic headers in front of clang's builtin headers, and clang's headers that
    are supposed to wrap msvc headers (say, stdarg.h) aren't picked up at all
    anymore.
    
    So revert that, and instead expose -imsvc which works as if the passed
    directory was part of %INCLUDE%: The header is treated as a system header, but
    it is searched after clang's lib/Header headers.
    
    Fixes half of PRPR26751.
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266108 91177308-0d34-0410-b5e6-96231b3b80d8
Code owners
Assign users and groups as approvers for specific file changes. Learn more.