summary refs log tree commit diff stats
path: root/tools/niminst
diff options
context:
space:
mode:
authorlenoil98 <hamiltcl@verizon.net>2020-11-13 02:16:20 -0500
committerGitHub <noreply@github.com>2020-11-13 08:16:20 +0100
commit778914c3ca9d6c57b0158d8bf69f92b01b0bd2e1 (patch)
treeca08e30b012ee723a715d60bb06d5b644f7fa0d9 /tools/niminst
parent1fdfa234d76d59fd8d5cafd9d53cfdf8bfbf5c0a (diff)
downloadNim-778914c3ca9d6c57b0158d8bf69f92b01b0bd2e1.tar.gz
Update buildsh.nimf (#15945)
fix powerpc64le detection
Diffstat (limited to 'tools/niminst')
-rw-r--r--tools/niminst/buildsh.nimf7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/niminst/buildsh.nimf b/tools/niminst/buildsh.nimf
index 5ec5d5c2c..e13221781 100644
--- a/tools/niminst/buildsh.nimf
+++ b/tools/niminst/buildsh.nimf
@@ -159,9 +159,10 @@ case $ucpu in
       COMP_FLAGS="$COMP_FLAGS -m64"
       LINK_FLAGS="$LINK_FLAGS -m64"
       mycpu=`uname -p`
-      if [ "$(mycpu)" = "powerpc64le"] ; then
-	mycpu="powerpc64el"
-      fi
+      case $mycpu in
+        powerpc64le)
+        mycpu="powerpc64el"
+      esac
     else
       mycpu="powerpc"
     fi