[cfe-commits] r79859 - /cfe/trunk/lib/Driver/Driver.cpp
Daniel Dunbar
daniel at zuster.org
Sun Aug 23 11:42:54 PDT 2009
Author: ddunbar
Date: Sun Aug 23 13:42:54 2009
New Revision: 79859
URL: http://llvm.org/viewvc/llvm-project?rev=79859&view=rev
Log:
Temporarily switch clang back to not using clang-cc by default for C++, and only
using clang-cc on i386 and x86_64.
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=79859&r1=79858&r2=79859&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Sun Aug 23 13:42:54 2009
@@ -37,6 +37,9 @@
using namespace clang::driver;
using namespace clang;
+// Used to set values for "production" clang, for releases.
+#define USE_PRODUCTION_CLANG
+
Driver::Driver(const char *_Name, const char *_Dir,
const char *_DefaultHostTriple,
const char *_DefaultImageName,
@@ -46,10 +49,20 @@
DefaultImageName(_DefaultImageName),
Host(0),
CCCIsCXX(false), CCCEcho(false), CCCPrintBindings(false),
- CCCGenericGCCName("gcc"), CCCUseClang(true), CCCUseClangCXX(true),
+ CCCGenericGCCName("gcc"), CCCUseClang(true),
+#ifdef USE_PRODUCTION_CLANG
+ CCCUseClangCXX(false),
+#else
+ CCCUseClangCXX(true),
+#endif
CCCUseClangCPP(true), CCCUsePCH(true),
SuppressMissingInputWarning(false)
{
+#ifdef USE_PRODUCTION_CLANG
+ // Only use clang on i386 and x86_64 by default, in a "production" build.
+ CCCClangArchs.insert("i386");
+ CCCClangArchs.insert("x86_64");
+#endif
}
Driver::~Driver() {
More information about the cfe-commits
mailing list