Fix make.bat checking 64bit systems
authorCampbell Barton <ideasman42@gmail.com>
Tue, 9 Feb 2016 13:26:12 +0000 (00:26 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 9 Feb 2016 13:26:12 +0000 (00:26 +1100)
make.bat

index 8c41308eb0a48128f2e4cf7b2082e2edc71a086d..b4cbe8c11e97c58ec989f2cdffd8aae884a01fbc 100644 (file)
--- a/make.bat
+++ b/make.bat
@@ -116,10 +116,12 @@ if NOT "%1" == "" (
        goto argv_loop
 )
 
-if "%PROCESSOR_ARCHITECTURE%" == "x86" (
-       set WINDOWS_ARCH=
-) else (
+if "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
+       set WINDOWS_ARCH=Win64
+) else if "%PROCESSOR_ARCHITEW6432%" == "AMD64" (
        set WINDOWS_ARCH=Win64
+) else (
+       set WINDOWS_ARCH=
 )
 
 set BUILD_CMAKE_ARGS=%BUILD_CMAKE_ARGS% -G "Visual Studio 12 2013 %WINDOWS_ARCH%"