mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-07-18 12:58:21 +08:00
[New] install: add support for loongarch64 architecture
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Executable
+5
@@ -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
|
||||
Reference in New Issue
Block a user