diff options
| author | Reid Kleckner <reid@kleckner.net> | 2014-04-23 00:15:12 +0000 |
|---|---|---|
| committer | Reid Kleckner <reid@kleckner.net> | 2014-04-23 00:15:12 +0000 |
| commit | 9aff2ca27cf78b3c49bb339bb89dc3dec2c7aeb9 (patch) | |
| tree | b1a1f2a2f5e3edaa7a6137c9c418724b105f090f /clang/lib/Driver | |
| parent | 77b45ba301c28d52314a2f9f019432595a83fccb (diff) | |
| download | bcm5719-llvm-9aff2ca27cf78b3c49bb339bb89dc3dec2c7aeb9.tar.gz bcm5719-llvm-9aff2ca27cf78b3c49bb339bb89dc3dec2c7aeb9.zip | |
Driver: Honor %INCLUDE% when built with MinGW
Users are expected to pass system includes through the INCLUDE
environment variable on Windows. There's no reason to change behavior
based on the toolchain used to build Clang.
I didn't change the registry searching code because I'm not sure it
builds with mingw and I'm not set up to test it.
llvm-svn: 206934
Diffstat (limited to 'clang/lib/Driver')
| -rw-r--r-- | clang/lib/Driver/WindowsToolChain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/WindowsToolChain.cpp b/clang/lib/Driver/WindowsToolChain.cpp index cd6d7e16fc9..aba06d6ef8b 100644 --- a/clang/lib/Driver/WindowsToolChain.cpp +++ b/clang/lib/Driver/WindowsToolChain.cpp @@ -293,7 +293,6 @@ 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; @@ -305,6 +304,7 @@ void Windows::AddClangSystemIncludeArgs(const ArgList &DriverArgs, return; } +#ifdef _MSC_VER std::string VSDir; std::string WindowsSDKDir; |

