From ea0752f625765eeab637c1fabdb15787c95b23f3 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Sun, 27 Jul 2014 20:35:16 +0100 Subject: [PATCH 1003/1008] Default to ppc7400 for OSX 10.5+ --- lib/Driver/ToolChains/CommonArgs.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git llvm_release_50/tools/clang/lib/Driver/ToolChains/CommonArgs.cpp macports_release_50/tools/clang/lib/Driver/ToolChains/CommonArgs.cpp index 00bd60bc24..931ab66061 100644 --- llvm_release_50/tools/clang/lib/Driver/ToolChains/CommonArgs.cpp +++ macports_release_50/tools/clang/lib/Driver/ToolChains/CommonArgs.cpp @@ -314,6 +314,9 @@ std::string tools::getCPUName(const ArgList &Args, const llvm::Triple &T, TargetCPUName = "ppc64"; else if (T.getArch() == llvm::Triple::ppc64le) TargetCPUName = "ppc64le"; + else if (T.isOSDarwin() && !T.isMacOSXVersionLT(10,5)) + // For 10.5+ Altivec is assumed available. + TargetCPUName = "7400"; else TargetCPUName = "ppc"; } -- 2.13.3