mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 10:01:42 +00:00
Patch from Andrew Kaylor that fixes Linux default host triple values.
llvm-svn: 165728
This commit is contained in:
parent
d2acff9c3e
commit
b29e6c6e84
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user