瀏覽代碼

Added OS Platform (cpu architecture) detection support to windows systems

Zach Mullen 16 年之前
父節點
當前提交
8fe2738096
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Source/kwsys/SystemInformation.cxx

+ 6 - 0
Source/kwsys/SystemInformation.cxx

@@ -3358,6 +3358,12 @@ bool SystemInformationImplementation::QueryOSInformation()
     WSACleanup( );
     }
   this->Hostname = name;
+  
+  const char* arch = getenv("PROCESSOR_ARCHITECTURE");
+  if(arch)
+    {
+    this->OSPlatform = arch;
+    }
 
 #else