summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xbuild.bat4
1 files changed, 3 insertions, 1 deletions
diff --git a/build.bat b/build.bat
index 5214944c0..b68d626f6 100755
--- a/build.bat
+++ b/build.bat
@@ -4,7 +4,9 @@ if not exist "csources"(
 )
 
 cd "csources"
-if exist "C:\Program Files (x86)" (
+
+for /f "skip=1 delims=" %%x in ('wmic cpu get addresswidth') do if not defined AddressWidth set AddressWidth=%%x
+if %AddressWidth%==64 (
 	call build64.bat
 ) else (
 	call build.bat