From: David Majnemer Date: Mon, 25 Jul 2016 04:47:44 +0000 (+0000) Subject: [MSVCToolChain] Guard hardcoded Windows paths with LLVM_ON_WIN32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ef5448087020550654d047ef71438aba26e582b;p=clang [MSVCToolChain] Guard hardcoded Windows paths with LLVM_ON_WIN32 Paths like C:/foo will never work on UNIX platforms, don't bother implicitly adding them to the search path. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276606 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/MSVCToolChain.cpp b/lib/Driver/MSVCToolChain.cpp index fc2128f838..62a2ea6adc 100644 --- a/lib/Driver/MSVCToolChain.cpp +++ b/lib/Driver/MSVCToolChain.cpp @@ -648,6 +648,7 @@ void MSVCToolChain::AddClangSystemIncludeArgs(const ArgList &DriverArgs, return; } +#if defined(LLVM_ON_WIN32) // As a fallback, select default install paths. // FIXME: Don't guess drives and paths like this on Windows. const StringRef Paths[] = { @@ -658,6 +659,7 @@ void MSVCToolChain::AddClangSystemIncludeArgs(const ArgList &DriverArgs, "C:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/Include" }; addSystemIncludes(DriverArgs, CC1Args, Paths); +#endif } void MSVCToolChain::AddClangCXXStdlibIncludeArgs(const ArgList &DriverArgs,