mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 17:45:07 +08:00
Call Platform::SetHostPlatform in the NetBSD platform only on NetBSD
Patch by Kamil Rytarowski Differential Revision: http://reviews.llvm.org/D14876 llvm-svn: 253699
This commit is contained in:
@@ -94,10 +94,12 @@ PlatformNetBSD::Initialize ()
|
||||
|
||||
if (g_initialize_count++ == 0)
|
||||
{
|
||||
#if defined(__NetBSD__)
|
||||
// Force a host flag to true for the default platform object.
|
||||
PlatformSP default_platform_sp (new PlatformNetBSD(true));
|
||||
default_platform_sp->SetSystemArchitecture(HostInfo::GetArchitecture());
|
||||
Platform::SetHostPlatform (default_platform_sp);
|
||||
#endif
|
||||
PluginManager::RegisterPlugin(PlatformNetBSD::GetPluginNameStatic(false),
|
||||
PlatformNetBSD::GetDescriptionStatic(false),
|
||||
PlatformNetBSD::CreateInstance);
|
||||
|
||||
Reference in New Issue
Block a user