mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-06 04:57:49 +00:00
Add support for FreeBSD/PowerPC64 Little Endian (#15927)
* Update installer.ini
Add support for powerpc64 little endian
* Update buildsh.nimf
Add support for powerpc64 little endian
* Update makefile.nimf
Add support for freebsd/powerpc64 little endian
(cherry picked from commit 63c559e781)
This commit is contained in:
@@ -9,7 +9,7 @@ Platforms: """
|
||||
linux: i386;hppa;ia64;alpha;amd64;powerpc64;arm;sparc;sparc64;m68k;mips;mipsel;mips64;mips64el;powerpc;powerpc64el;arm64;riscv64
|
||||
macosx: i386;amd64;powerpc64
|
||||
solaris: i386;amd64;sparc;sparc64
|
||||
freebsd: i386;amd64;powerpc64;arm;arm64;riscv64;sparc64;mips;mipsel;mips64;mips64el;powerpc
|
||||
freebsd: i386;amd64;powerpc64;arm;arm64;riscv64;sparc64;mips;mipsel;mips64;mips64el;powerpc;powerpc64el
|
||||
netbsd: i386;amd64
|
||||
openbsd: i386;amd64;arm;arm64
|
||||
dragonfly: i386;amd64
|
||||
|
||||
@@ -159,7 +159,10 @@ case $ucpu in
|
||||
COMP_FLAGS="$COMP_FLAGS -m64"
|
||||
LINK_FLAGS="$LINK_FLAGS -m64"
|
||||
mycpu=`uname -p`
|
||||
else
|
||||
if [ "$(mycpu)" = "powerpc64le"] ; then
|
||||
mycpu="powerpc64el"
|
||||
fi
|
||||
else
|
||||
mycpu="powerpc"
|
||||
fi
|
||||
;;
|
||||
|
||||
@@ -124,6 +124,9 @@ ifeq ($(ucpu),powerpc)
|
||||
mycpu = $(shell sh -c 'uname -p | tr "[:upper:]" "[:lower:]"')
|
||||
CFLAGS += -m64
|
||||
LDFLAGS += -m64
|
||||
ifeq ($(mycpu),powerpc64le)
|
||||
mycpu = powerpc64el
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
ifeq ($(ucpu),ppc)
|
||||
|
||||
Reference in New Issue
Block a user