This is an archive of the discontinued LLVM Phabricator instance.

[clang-cl] Implement /X
ClosedPublic

Authored by thakis on Feb 28 2018, 11:17 AM.

Details

Reviewers
hans
Summary

/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.

Diff Detail

Event Timeline

thakis created this revision.Feb 28 2018, 11:17 AM
hans accepted this revision.Feb 28 2018, 11:20 AM

lgtm

Nicely tested too :-)

This revision is now accepted and ready to land.Feb 28 2018, 11:20 AM
thakis closed this revision.Feb 28 2018, 11:51 AM

r326357, thanks!