Index: source/Plugins/Platform/Linux/PlatformLinux.cpp =================================================================== --- source/Plugins/Platform/Linux/PlatformLinux.cpp +++ source/Plugins/Platform/Linux/PlatformLinux.cpp @@ -166,44 +166,23 @@ if (create == false && arch && arch->IsValid()) { const llvm::Triple &triple = arch->GetTriple(); - switch (triple.getVendor()) + switch (triple.getOS()) { - case llvm::Triple::PC: + case llvm::Triple::Linux: create = true; break; #if defined(__linux__) - // Only accept "unknown" for the vendor if the host is linux and + // Only accept "unknown" for the OS if the host is linux and // it "unknown" wasn't specified (it was just returned because it - // was NOT specified_ - case llvm::Triple::VendorType::UnknownVendor: - create = !arch->TripleVendorWasSpecified(); + // was NOT specified) + case llvm::Triple::OSType::UnknownOS: + create = !arch->TripleOSWasSpecified(); break; #endif default: break; } - - if (create) - { - switch (triple.getOS()) - { - case llvm::Triple::Linux: - break; - -#if defined(__linux__) - // Only accept "unknown" for the OS if the host is linux and - // it "unknown" wasn't specified (it was just returned because it - // was NOT specified) - case llvm::Triple::OSType::UnknownOS: - create = !arch->TripleOSWasSpecified(); - break; -#endif - default: - create = false; - break; - } - } } if (create)