]> granicus.if.org Git - clang/commitdiff
Reapply "Driver/Darwin: Time for another spin at switching to the DarwinClang",
authorDaniel Dunbar <daniel@zuster.org>
Fri, 17 Sep 2010 04:25:28 +0000 (04:25 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 17 Sep 2010 04:25:28 +0000 (04:25 +0000)
now that eprintf symbol issue is resolved.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114166 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/HostInfo.cpp

index 7c5e430bb7d58026b97dd75252f39b4ba056236b..745d273a5e2f141b6da6b16e1b562a0afb5d9a39 100644 (file)
@@ -115,6 +115,7 @@ ToolChain *DarwinHostInfo::CreateToolChain(const ArgList &Args,
     // If we recognized the arch, match it to the toolchains we support.
     const char *UseNewToolChain = ::getenv("CCC_ENABLE_NEW_DARWIN_TOOLCHAIN");
     if (UseNewToolChain || 
+        Arch == llvm::Triple::x86 || Arch == llvm::Triple::x86_64 ||
         Arch == llvm::Triple::arm || Arch == llvm::Triple::thumb) {
       TC = new toolchains::DarwinClang(*this, TCTriple);
     } else if (Arch == llvm::Triple::x86 || Arch == llvm::Triple::x86_64) {