[cfe-commits] r156487 - /cfe/trunk/lib/Driver/Tools.cpp

Bob Wilson bob.wilson at apple.com
Wed May 9 10:53:10 PDT 2012


Author: bwilson
Date: Wed May  9 12:53:10 2012
New Revision: 156487

URL: http://llvm.org/viewvc/llvm-project?rev=156487&view=rev
Log:
Ignore a "generic" return value from getHostCPUName.  <rdar://problem/11314502>

Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=156487&r1=156486&r2=156487&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed May  9 12:53:10 2012
@@ -958,7 +958,7 @@
       // 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);





More information about the cfe-commits mailing list