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:
wenghongquan 2021-12-09 21:00:33 +08:00 • committed by GitHub
commit 742e9d65ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 13 additions and 4 deletions

View file

@ -229,6 +229,8 @@ case $ucpu in
mycpu="riscv64" ;;
*e2k* )
mycpu="e2k" ;;
*loongarch64* )
mycpu="loongarch64" ;;
*)
echo 2>&1 "Error: unknown processor: $ucpu"
exit 1

View file

@ -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