From: Bob Wilson Date: Wed, 9 May 2012 17:53:10 +0000 (+0000) Subject: Ignore a "generic" return value from getHostCPUName. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0cc309536817cc5701c5a26119c8eeb7080057c;p=clang Ignore a "generic" return value from getHostCPUName. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156487 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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);