[clang-cl] Implement /X
authorNico Weber <nicolasweber@gmx.de>
Wed, 28 Feb 2018 19:49:07 +0000 (19:49 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 28 Feb 2018 19:49:07 +0000 (19:49 +0000)
commit07f0a52c7fcef1bdbf3b2c0847b6c40ec2402d91
tree0ea02cbe31325c1a2711add5222217bc11146254
parent45f984e625956285e87be0848f5799b77530f1d4
[clang-cl] Implement /X

/X makes cl stop looking in %INCLUDE%. Implement this for clang-cl.

As it turns out, the return in ToolChains/MSVC.cpp, AddClangSystemIncludeArgs()
for -nostdlibinc is already in the right place (but -nostdlibinc isn't exposed
by clang-cl), so just alias /X to that.

https://reviews.llvm.org/D43888

llvm-svn: 326357
clang/include/clang/Driver/CLCompatOptions.td
clang/test/Driver/cl-include.c