Hi, 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. Also expose -nostdlibinc so that clang-cl can be told to not look for system headers in the usual places. 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. I'd upload this to phab, but it's currently down. Nico
clang-cl-imsvc.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits