summary refs log tree commit diff stats
path: root/tools/niminst
diff options
context:
space:
mode:
authorSergey Avseyev <sergey.avseyev@gmail.com>2017-11-12 00:55:13 +0300
committerVarriount <Varriount@users.noreply.github.com>2017-11-11 16:55:13 -0500
commit22ceab0fbb29241f72149fe4d53749d57861ba6f (patch)
tree3d0fd87f22ac3db959c9c4fa2e890a5aa26aca83 /tools/niminst
parentbdd35c9722a408f386eb732f93b941827edcaa51 (diff)
downloadNim-22ceab0fbb29241f72149fe4d53749d57861ba6f.tar.gz
Fix little endian PPC64 architecture detection (#6713)
Diffstat (limited to 'tools/niminst')
-rw-r--r--tools/niminst/buildsh.tmpl2
-rw-r--r--tools/niminst/makefile.tmpl3
2 files changed, 5 insertions, 0 deletions
diff --git a/tools/niminst/buildsh.tmpl b/tools/niminst/buildsh.tmpl
index ec20566ac..3e7d8ae6e 100644
--- a/tools/niminst/buildsh.tmpl
+++ b/tools/niminst/buildsh.tmpl
@@ -144,6 +144,8 @@ case $ucpu in
       mycpu="sparc64"
     fi
     ;;
+  *ppc64le* )
+    mycpu="powerpc64el" ;;
   *ppc64* )
     if [ "$myos" = "linux" ] ; then
       COMP_FLAGS="$COMP_FLAGS -m64"
diff --git a/tools/niminst/makefile.tmpl b/tools/niminst/makefile.tmpl
index 4a20680e0..bf4fd5cd0 100644
--- a/tools/niminst/makefile.tmpl
+++ b/tools/niminst/makefile.tmpl
@@ -107,6 +107,9 @@ endif
 ifeq ($(ucpu),sun)
   mycpu = sparc
 endif
+ifeq ($(ucpu),ppc64le)
+  mycpu = powerpc64el
+endif
 ifeq ($(ucpu),ppc64)
   mycpu = powerpc64
   ifeq ($(myos),linux)