diff options
author | Bob Wilson <bob.wilson@apple.com> | 2012-05-09 17:53:10 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2012-05-09 17:53:10 +0000 |
commit | e0cc309536817cc5701c5a26119c8eeb7080057c (patch) | |
tree | 435e779b665a1ea93a3dd90a57233f906593135f /lib/Driver/Tools.cpp | |
parent | c44c0e4e2f3f911319a6a5ab564fe59a4ece45a0 (diff) |
Ignore a "generic" return value from getHostCPUName. <rdar://problem/11314502>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156487 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 1ccba75507..10964ecb75 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -958,7 +958,7 @@ void Clang::AddX86TargetArgs(const ArgList &Args, // FIXME: We should also incorporate the detected target features for use // with -native. std::string CPU = llvm::sys::getHostCPUName(); - if (!CPU.empty()) + if (!CPU.empty() && CPU != "generic") CPUName = Args.MakeArgString(CPU); } else CPUName = A->getValue(Args); |