]> granicus.if.org Git - clang/commitdiff
Revert "Reland r206934 with a hopefully fixed test"
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 25 Apr 2014 13:29:03 +0000 (13:29 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 25 Apr 2014 13:29:03 +0000 (13:29 +0000)
This reverts commit r207155.
The test was still failing.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207225 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/WindowsToolChain.cpp
test/Driver/windows-include-env.c [deleted file]

index aba06d6ef8b36b4f17fceb0fe68ed8481f79c2f6..cd6d7e16fc90814d333fed664fbf83e7e5857555 100644 (file)
@@ -293,6 +293,7 @@ void Windows::AddClangSystemIncludeArgs(const ArgList &DriverArgs,
   if (DriverArgs.hasArg(options::OPT_nostdlibinc))
     return;
 
+#ifdef _MSC_VER
   // Honor %INCLUDE%. It should know essential search paths with vcvarsall.bat.
   if (const char *cl_include_dir = getenv("INCLUDE")) {
     SmallVector<StringRef, 8> Dirs;
@@ -304,7 +305,6 @@ void Windows::AddClangSystemIncludeArgs(const ArgList &DriverArgs,
       return;
   }
 
-#ifdef _MSC_VER
   std::string VSDir;
   std::string WindowsSDKDir;
 
diff --git a/test/Driver/windows-include-env.c b/test/Driver/windows-include-env.c
deleted file mode 100644 (file)
index c3287dd..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-// RUN: env INCLUDE=my_system_headers %clang --target=i686-windows -c %s -### 2>&1 | FileCheck %s
-// RUN: env INCLUDE=my_system_headers %clang_cl -c %s -### 2>&1 | FileCheck %s
-// CHECK: "-cc1"
-// CHECK: "-internal-isystem" "my_system_headers"