Skip to content

Commit

Permalink
Fix build on FreeBSD/powerpc (nim-lang#19282)
Browse files Browse the repository at this point in the history
It's currently misdetected as powerpc64.
  • Loading branch information
pkubaj authored and PMunch committed Mar 28, 2022
1 parent e6c17f6 commit 663d7b9
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 663d7b9

Please sign in to comment.