зеркало из https://github.com/microsoft/clang-1.git
[Cygwin] Abandon Cygwin-1.5 and g++-3. Use g++-4.3 and higher on Cygwin-1.7.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148636 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
665b002658
Коммит
b4f90c28fa
|
@ -36,13 +36,6 @@
|
|||
#include "InputInfo.h"
|
||||
#include "ToolChains.h"
|
||||
|
||||
#ifdef __CYGWIN__
|
||||
#include <cygwin/version.h>
|
||||
#if defined(CYGWIN_VERSION_DLL_MAJOR) && CYGWIN_VERSION_DLL_MAJOR<1007
|
||||
#define IS_CYGWIN15 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
using namespace clang::driver;
|
||||
using namespace clang::driver::tools;
|
||||
using namespace clang;
|
||||
|
@ -2748,12 +2741,7 @@ void gcc::Common::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
if (!customGCCName.empty())
|
||||
GCCName = customGCCName.c_str();
|
||||
else if (D.CCCIsCXX) {
|
||||
#ifdef IS_CYGWIN15
|
||||
// FIXME: Detect the version of Cygwin at runtime?
|
||||
GCCName = "g++-4";
|
||||
#else
|
||||
GCCName = "g++";
|
||||
#endif
|
||||
} else
|
||||
GCCName = "gcc";
|
||||
|
||||
|
|
|
@ -386,8 +386,6 @@ AddDefaultCPlusPlusIncludePaths(const llvm::Triple &triple, const HeaderSearchOp
|
|||
AddMinGWCPlusPlusIncludePaths("/usr/lib/gcc", "i686-pc-cygwin", "4.3.4");
|
||||
// g++-4 / Cygwin-1.5
|
||||
AddMinGWCPlusPlusIncludePaths("/usr/lib/gcc", "i686-pc-cygwin", "4.3.2");
|
||||
// FIXME: Do we support g++-3.4.4?
|
||||
AddMinGWCPlusPlusIncludePaths("/usr/lib/gcc", "i686-pc-cygwin", "3.4.4");
|
||||
break;
|
||||
case llvm::Triple::MinGW32:
|
||||
// mingw-w64 C++ include paths (i686-w64-mingw32 and x86_64-w64-mingw32)
|
||||
|
|
Загрузка…
Ссылка в новой задаче