mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
Add mips64 and mips64el CPU platforms (#5866)
This commit is contained in:
committed by
Andreas Rumpf
parent
57edf619fe
commit
fed1b0a077
@@ -123,7 +123,15 @@ case $ucpu in
|
||||
*power*|*ppc* )
|
||||
mycpu="powerpc" ;;
|
||||
*mips* )
|
||||
mycpu="mips" ;;
|
||||
mycpu="$("$CC" -dumpmachine | sed 's/-.*//')"
|
||||
case $mycpu in
|
||||
mips|mipsel|mips64|mips64el)
|
||||
;;
|
||||
*)
|
||||
echo 2>&1 "Error: unknown MIPS target: $mycpu"
|
||||
exit 1
|
||||
esac
|
||||
;;
|
||||
*arm*|*armv6l* )
|
||||
mycpu="arm" ;;
|
||||
*aarch64* )
|
||||
|
||||
@@ -114,8 +114,11 @@ endif
|
||||
ifeq ($(ucpu),ppc)
|
||||
mycpu = ppc
|
||||
endif
|
||||
ifeq ($(ucpu),mips)
|
||||
mycpu = mips
|
||||
ifneq (,$(filter $(ucpu), mips mips64))
|
||||
mycpu = $(shell /bin/sh -c '"$(CC)" -dumpmachine | sed "s/-.*//"')
|
||||
ifeq (,$(filter $(mycpu), mips mipsel mips64 mips64el))
|
||||
$(error unknown MIPS target: $(mycpu))
|
||||
endif
|
||||
endif
|
||||
ifeq ($(ucpu),arm)
|
||||
mycpu = arm
|
||||
|
||||
Reference in New Issue
Block a user