[New] install: add support for loongarch64 architecture

This commit is contained in:
Yinan Qin
2025-10-25 19:19:05 +08:00
committed by Jordan Harband
parent 0c1243a7ea
commit ab77712867
3 changed files with 8 additions and 0 deletions
+1
View File
@@ -2183,6 +2183,7 @@ nvm_get_arch() {
x86_64 | amd64) NVM_ARCH="x64" ;;
i*86) NVM_ARCH="x86" ;;
aarch64 | armv8l) NVM_ARCH="arm64" ;;
loongarch64) NVM_ARCH="loong64" ;;
*) NVM_ARCH="${HOST_ARCH}" ;;
esac
+2
View File
@@ -93,4 +93,6 @@ run_test amd64 osx x64
run_test arm64 smartos x64
run_test armv8l smartos x64
run_test loongarch64 linux loong64
cleanup
+5
View File
@@ -0,0 +1,5 @@
if [ "_$1" = "_-m" ]; then
echo "loongarch64"
else
echo "Linux foo 6.12.54-16k #0 SMP PREEMPT_DYNAMIC Fri Dec 5 12:35:43 UTC loongarch64 GNU/Linux"
fi