[cfe-commits] r116183 - /cfe/trunk/lib/Driver/Driver.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Sun Oct 10 19:28:42 PDT 2010
Author: chapuni
Date: Sun Oct 10 21:28:42 2010
New Revision: 116183
URL: http://llvm.org/viewvc/llvm-project?rev=116183&view=rev
Log:
lib/Driver/Driver.cpp: Use the driver g++-4 for Cygwin-1.5.
Modified:
cfe/trunk/lib/Driver/Driver.cpp
Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=116183&r1=116182&r2=116183&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Sun Oct 10 21:28:42 2010
@@ -37,6 +37,13 @@
#include <map>
+#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;
@@ -225,8 +232,13 @@
CCCPrintActions = Args->hasArg(options::OPT_ccc_print_phases);
CCCPrintBindings = Args->hasArg(options::OPT_ccc_print_bindings);
CCCIsCXX = Args->hasArg(options::OPT_ccc_cxx) || CCCIsCXX;
- if (CCCIsCXX)
+ if (CCCIsCXX) {
+#ifdef IS_CYGWIN15
+ CCCGenericGCCName = "g++-4";
+#else
CCCGenericGCCName = "g++";
+#endif
+ }
CCCEcho = Args->hasArg(options::OPT_ccc_echo);
if (const Arg *A = Args->getLastArg(options::OPT_ccc_gcc_name))
CCCGenericGCCName = A->getValue(*Args);
More information about the cfe-commits
mailing list