diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-05-06 04:58:14 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-05-06 04:58:14 +0000 |
commit | 500aec477c82660adda912c35b634006017933be (patch) | |
tree | 75322210de7dec7d5c0f3e4ed7fff21d6c94c32b /lib/Driver/Tools.cpp | |
parent | f47f7a1c4082b42b21f1c7dc211ff90f4b38258a (diff) |
Tweak x86 -mcpu defaults.
- Default to yonah on Darwin (to get SSE3).
- Default to Pentium4 (32-bit) and x86-64 (64-bit) on
non-Darwin. Welcome to the 21st century.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71069 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index a52498dc95..ad4db49e9b 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -341,6 +341,11 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, if (getToolChain().getArchName() == "x86_64") CmdArgs.push_back("--mcpu=core2"); else if (getToolChain().getArchName() == "i386") + CmdArgs.push_back("--mcpu=yonah"); + } else { + if (getToolChain().getArchName() == "x86_64") + CmdArgs.push_back("--mcpu=x86-64"); + else if (getToolChain().getArchName() == "i386") CmdArgs.push_back("--mcpu=pentium4"); } } |