Skip to content

Commit

Permalink
Fix build on FreeBSD/powerpc (#19282)
Browse files Browse the repository at this point in the history
It's currently misdetected as powerpc64.
  • Loading branch information
pkubaj authored Dec 23, 2021
1 parent 19898e1 commit 7a5314c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/niminst/buildsh.nimf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7a5314c

Please sign in to comment.