diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-23 17:48:59 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-23 17:48:59 +0000 |
commit | dfaf4b3ac898bc40d928af693990769e98738793 (patch) | |
tree | 06ec51a597238f25128cea149d894f01cedc9f45 /lib/Driver/Driver.cpp | |
parent | 2a3856ac8a52ed84349e830253c5dac616858f5c (diff) |
Switch the driver back to always using clang-cc by default (for C++, and
regardless of the architecture).
- This is a good default for development & testing; for example without this
any tests using 'clang' in the test suite will fail on PowerPC, since the
driver will avoid using clang.
- We don't want to actually ship something built this way, but that should be
handled via some sort of configuration file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r-- | lib/Driver/Driver.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index c4136df56b..8adeb02b90 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -46,13 +46,10 @@ Driver::Driver(const char *_Name, const char *_Dir, DefaultImageName(_DefaultImageName), Host(0), CCCIsCXX(false), CCCEcho(false), CCCPrintBindings(false), - CCCGenericGCCName("gcc"), CCCUseClang(true), CCCUseClangCXX(false), + CCCGenericGCCName("gcc"), CCCUseClang(true), CCCUseClangCXX(true), CCCUseClangCPP(true), CCCUsePCH(true), SuppressMissingInputWarning(false) { - // Only use clang on i386 and x86_64 by default. - CCCClangArchs.insert("i386"); - CCCClangArchs.insert("x86_64"); } Driver::~Driver() { @@ -144,6 +141,8 @@ Compilation *Driver::BuildCompilation(int argc, const char **argv) { } else if (!strcmp(Opt, "clang-cxx")) { CCCUseClangCXX = true; + } else if (!strcmp(Opt, "no-clang-cxx")) { + CCCUseClangCXX = false; } else if (!strcmp(Opt, "pch-is-pch")) { CCCUsePCH = true; } else if (!strcmp(Opt, "pch-is-pth")) { |