diff options
author | pkubaj <pkubaj@anongoth.pl> | 2021-12-23 02:52:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-22 20:52:33 -0500 |
commit | 7a5314c571ec2c370f63d5fab0afd336e04ec161 (patch) | |
tree | f21d378ae72bd2c1641cfe3cf592b477d4f59866 /tools/niminst | |
parent | 19898e1225862560b216b765187fc0b98dca7608 (diff) | |
download | Nim-7a5314c571ec2c370f63d5fab0afd336e04ec161.tar.gz |
Fix build on FreeBSD/powerpc (#19282)
It's currently misdetected as powerpc64.
Diffstat (limited to 'tools/niminst')
-rw-r--r-- | tools/niminst/buildsh.nimf | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/niminst/buildsh.nimf b/tools/niminst/buildsh.nimf index 464c70abf..5f1db9cd3 100644 --- a/tools/niminst/buildsh.nimf +++ b/tools/niminst/buildsh.nimf @@ -192,8 +192,10 @@ case $ucpu in mycpu="powerpc64" ;; *power*|*ppc* ) if [ "$myos" = "freebsd" ] ; then - COMP_FLAGS="$COMP_FLAGS -m64" - LINK_FLAGS="$LINK_FLAGS -m64" + if [ "$ucpu" != "powerpc" ] ; then + COMP_FLAGS="$COMP_FLAGS -m64" + LINK_FLAGS="$LINK_FLAGS -m64" + fi mycpu=`uname -p` case $mycpu in powerpc64le) |