Patch from Andrew Kaylor that fixes Linux default host triple values.

llvm-svn: 165728
This commit is contained in:
Greg Clayton 2012-10-11 17:38:58 +00:00
parent d2acff9c3e
commit b29e6c6e84

View File

@ -332,6 +332,11 @@ Host::GetArchitecture (SystemDefaultArchitecture arch_kind)
g_host_arch_32.Clear();
g_host_arch_64.Clear();
// If the OS is Linux, "unknown" in the vendor slot isn't what we want
// for the default triple. It's probably an artifact of config.guess.
if (triple.getOS() == llvm::Triple::Linux && triple.getVendor() == llvm::Triple::UnknownVendor)
triple.setVendorName("");
switch (triple.getArch())
{
default: