Windows: Don’t add INCLUDE paths clang will handle that as necessary.
This commit is contained in:
parent
15c1247a44
commit
92f39fc75c
@ -159,15 +159,6 @@ namespace {
|
||||
if (sArguments.empty()) {
|
||||
const bool Verbose = opts.Verbose;
|
||||
#ifdef _MSC_VER
|
||||
// Honor %INCLUDE%. It should know essential search paths with vcvarsall.bat.
|
||||
if (const char* Includes = getenv("INCLUDE")) {
|
||||
SmallVector<StringRef, 8> Dirs;
|
||||
utils::SplitPaths(Includes, Dirs, utils::kAllowNonExistant,
|
||||
platform::kEnvDelim, Verbose);
|
||||
for (const llvm::StringRef& Path : Dirs)
|
||||
sArguments.addArgument("-I", Path.str());
|
||||
}
|
||||
|
||||
// When built with access to the proper Windows APIs, try to actually find
|
||||
// the correct include paths first. Init for UnivSDK.empty check below.
|
||||
std::string VSDir, WinSDK,
|
||||
|
Loading…
x
Reference in New Issue
Block a user