From 92f39fc75c591aa903c99d0024c9c27cb473e1e4 Mon Sep 17 00:00:00 2001 From: Frederich Munch Date: Tue, 14 Feb 2017 15:12:49 -0500 Subject: [PATCH] =?UTF-8?q?Windows:=20Don=E2=80=99t=20add=20INCLUDE=20path?= =?UTF-8?q?s=20clang=20will=20handle=20that=20as=20necessary.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Interpreter/CIFactory.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/Interpreter/CIFactory.cpp b/lib/Interpreter/CIFactory.cpp index af56a508..1dcee1e0 100644 --- a/lib/Interpreter/CIFactory.cpp +++ b/lib/Interpreter/CIFactory.cpp @@ -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 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,