mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-29 18:11:44 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user