From 71404020b9f2aa93d6b763dd884887e2b10da446 Mon Sep 17 00:00:00 2001 From: Haowu Ge Date: Thu, 23 Nov 2023 23:13:04 +0800 Subject: [PATCH] Add LoongArch support for shell scripts --- assemblies/core/static/src/main/resources-filtered/spoon.sh | 4 ++++ assemblies/static/src/main/resources-filtered/spoon.sh | 4 ++++ translator.sh | 3 +++ 3 files changed, 11 insertions(+) diff --git a/assemblies/core/static/src/main/resources-filtered/spoon.sh b/assemblies/core/static/src/main/resources-filtered/spoon.sh index 2e40544313f2..f993f8cec6ec 100644 --- a/assemblies/core/static/src/main/resources-filtered/spoon.sh +++ b/assemblies/core/static/src/main/resources-filtered/spoon.sh @@ -187,6 +187,10 @@ case `uname -s` in LIBPATH=$CURRENTDIR/../libswt/linux/ppc64/ ;; + loongarch64) + LIBPATH=$CURRENTDIR/../libswt/linux/loongarch64/ + ;; + *) echo "I'm sorry, this Linux platform [$ARCH] is not yet supported!" exit diff --git a/assemblies/static/src/main/resources-filtered/spoon.sh b/assemblies/static/src/main/resources-filtered/spoon.sh index a0d6eea9a11c..f86b73b7c4b6 100644 --- a/assemblies/static/src/main/resources-filtered/spoon.sh +++ b/assemblies/static/src/main/resources-filtered/spoon.sh @@ -187,6 +187,10 @@ case `uname -s` in LIBPATH=$CURRENTDIR/../libswt/linux/ppc64/ ;; + loongarch64) + LIBPATH=$CURRENTDIR/../libswt/linux/loongarch64/ + ;; + *) echo "I'm sorry, this Linux platform [$ARCH] is not yet supported!" exit diff --git a/translator.sh b/translator.sh index 43ae731f302c..f67d51e6c8e3 100644 --- a/translator.sh +++ b/translator.sh @@ -101,6 +101,9 @@ case `uname -s` in ppc) LIBPATH=$BASEDIR/libswt/linux/ppc/ ;; + loongarch64) + LIBPATH=$CURRENTDIR/../libswt/linux/loongarch64/ + ;; *) echo "I'm sorry, this Linux platform [$ARCH] is not yet supported!"