summary refs log tree commit diff stats
path: root/tools/niminst
diff options
context:
space:
mode:
authorSergey Avseyev <sergey.avseyev@gmail.com>2016-07-20 22:31:24 +0300
committerSergey Avseyev <sergey.avseyev@gmail.com>2016-07-21 00:08:49 +0300
commit1492ff33ce98f71a987fd26180346896c0538428 (patch)
treeed62ab2bed40e49c37a94178f527691dbc646f37 /tools/niminst
parent5f623ea9ef7fcd35fb6a5ae44074b8c66cb20fcf (diff)
downloadNim-1492ff33ce98f71a987fd26180346896c0538428.tar.gz
define sparc64 platform
Diffstat (limited to 'tools/niminst')
-rw-r--r--tools/niminst/buildsh.tmpl6
-rw-r--r--tools/niminst/niminst.nim2
2 files changed, 6 insertions, 2 deletions
diff --git a/tools/niminst/buildsh.tmpl b/tools/niminst/buildsh.tmpl
index 2c66ea493..13dfe5226 100644
--- a/tools/niminst/buildsh.tmpl
+++ b/tools/niminst/buildsh.tmpl
@@ -105,7 +105,11 @@ case $ucpu in
   *amd*64* | *x86-64* | *x86_64* )
     mycpu="amd64" ;;
   *sparc*|*sun* )
-    mycpu="sparc" ;;
+    mycpu="sparc"
+    if [ "$(isainfo -b)" = "64" ]; then
+      mycpu="sparc64"
+    fi
+    ;;
   *ppc64* )
     if [ "$myos" = "linux" ] ; then
       COMP_FLAGS="$COMP_FLAGS -m64"
diff --git a/tools/niminst/niminst.nim b/tools/niminst/niminst.nim
index b4f9c3687..4c8dfcddf 100644
--- a/tools/niminst/niminst.nim
+++ b/tools/niminst/niminst.nim
@@ -18,7 +18,7 @@ import
 
 const
   maxOS = 20 # max number of OSes
-  maxCPU = 10 # max number of CPUs
+  maxCPU = 20 # max number of CPUs
   buildShFile = "build.sh"
   buildBatFile32 = "build.bat"
   buildBatFile64 = "build64.bat"