summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorWay, No <noway@2ch.hk>2015-01-15 07:50:45 +1000
committerWay, No <noway@2ch.hk>2015-01-15 07:50:45 +1000
commit23c87d4e258c161f45b4fe4c89d832ad5fc116ba (patch)
treeaf7df77b8900a65521e1e474ac4ef917f00f8f23
parenteef75ba3c31bb77951575049588d7165683a4d52 (diff)
downloadNim-23c87d4e258c161f45b4fe4c89d832ad5fc116ba.tar.gz
changed architecture detection
-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