]> granicus.if.org Git - clang/commitdiff
Ignore a "generic" return value from getHostCPUName. <rdar://problem/11314502>
authorBob Wilson <bob.wilson@apple.com>
Wed, 9 May 2012 17:53:10 +0000 (17:53 +0000)
committerBob Wilson <bob.wilson@apple.com>
Wed, 9 May 2012 17:53:10 +0000 (17:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156487 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index 1ccba755071b93dd748295aea690a69c422f3559..10964ecb751e2e6ed307e3b5bd3bf172cc7cf047 100644 (file)
@@ -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);