clang-cl: Remove -isystem, add -imsvc.
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
Showing
- include/clang/Driver/CLCompatOptions.td 3 additions, 0 deletionsinclude/clang/Driver/CLCompatOptions.td
- include/clang/Driver/Options.td 1 addition, 1 deletioninclude/clang/Driver/Options.td
- lib/Driver/MSVCToolChain.cpp 4 additions, 0 deletionslib/Driver/MSVCToolChain.cpp
- test/Driver/cl-options.c 6 additions, 1 deletiontest/Driver/cl-options.c
- test/Driver/cl-pch-search.cpp 0 additions, 4 deletionstest/Driver/cl-pch-search.cpp
Loading
Please register or sign in to comment