<div dir="ltr">Hi,<div><br></div><div>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.<br></div><div><br></div><div>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.</div><div><br></div><div>Also expose -nostdlibinc so that clang-cl can be told to not look for system headers in the usual places.</div><div><br></div><div>With this change, it's possible to use -imsvc to point clang-cl at a hermetic MSVC installation and not make it look at the headers of a possibly installed msvc. Fixes PR26751.</div><div><br></div><div>I'd upload this to phab, but it's currently down.</div><div><br></div><div>Nico</div><div><br></div><div><br></div></div>