Add support for LoongArch (#19223)
* Add support for LoongArch * Update compiler/installer.ini Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
parent
502ac4ed5e
commit
742e9d65ad
6 changed files with 13 additions and 4 deletions
|
|
@ -95,6 +95,7 @@ _nim() {
|
|||
'*--cpu=sparc64[compile for SPARC64 architecture]' \
|
||||
'*--cpu=vm[compile for Nim VM]' \
|
||||
'*--cpu=wasm32[compile to WASM 32]' \
|
||||
'*--cpu=loongarch64[compile for LoongArch64 architecture]' \
|
||||
'*--gc=refc[use reference counting garbage collection]' \
|
||||
'*--gc=arc[use ARC garbage collection]' \
|
||||
'*--gc=orc[use ORC garbage collection]' \
|
||||
|
|
|
|||
|
|
@ -229,6 +229,8 @@ case $ucpu in
|
|||
mycpu="riscv64" ;;
|
||||
*e2k* )
|
||||
mycpu="e2k" ;;
|
||||
*loongarch64* )
|
||||
mycpu="loongarch64" ;;
|
||||
*)
|
||||
echo 2>&1 "Error: unknown processor: $ucpu"
|
||||
exit 1
|
||||
|
|
|
|||
|
|
@ -169,6 +169,9 @@ endif
|
|||
ifeq ($(ucpu),e2k)
|
||||
mycpu = e2k
|
||||
endif
|
||||
ifeq ($(ucpu),loongarch64)
|
||||
mycpu = loongarch64
|
||||
endif
|
||||
ifndef mycpu
|
||||
$(error unknown CPU architecture: $(ucpu) See makefile.nimf)
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue