Pārlūkot izejas kodu

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

Zach Mullen 16 gadi atpakaļ
vecāks
revīzija
8fe2738096
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  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