[Lldb-commits] [lldb] r165728 - /lldb/trunk/source/Host/common/Host.cpp
Greg Clayton
gclayton at apple.com
Thu Oct 11 10:38:58 PDT 2012
Author: gclayton
Date: Thu Oct 11 12:38:58 2012
New Revision: 165728
URL: http://llvm.org/viewvc/llvm-project?rev=165728&view=rev
Log:
Patch from Andrew Kaylor that fixes Linux default host triple values.
Modified:
lldb/trunk/source/Host/common/Host.cpp
Modified: lldb/trunk/source/Host/common/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/Host.cpp?rev=165728&r1=165727&r2=165728&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/Host.cpp (original)
+++ lldb/trunk/source/Host/common/Host.cpp Thu Oct 11 12:38:58 2012
@@ -332,6 +332,11 @@
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:
More information about the lldb-commits
mailing list