From: Xiaotian Wu Date: Tue, 8 Mar 2022 03:15:25 +0000 (+0800) Subject: basic: update the Arch tuples for LoongArch X-Git-Tag: v254-rc1~859 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a4a2077df5f20cbe80a41b6a93a125f66b494bda;p=thirdparty%2Fsystemd.git basic: update the Arch tuples for LoongArch After this commit[1], LoongArch now uses these Multiarch specs: - Double float: loongarch64-linux-gnu - Single float: loongarch64-linux-gnuf32 - Soft float: loongarch64-linux-gnusf You can visit here[2] to view the full documentation. [1]: https://github.com/loongson/LoongArch-Documentation/commit/55dbaadaaa90b5f5d08a74d96b866af42c8c3c82 [2]: https://loongson.github.io/LoongArch-Documentation/LoongArch-toolchain-conventions-EN.html --- diff --git a/src/basic/architecture.h b/src/basic/architecture.h index 096526a8570..788f3abc37f 100644 --- a/src/basic/architecture.h +++ b/src/basic/architecture.h @@ -197,10 +197,10 @@ Architecture uname_architecture(void); # elif defined(__SH4A__) # define LIB_ARCH_TUPLE "sh4a-linux-gnu" # endif -#elif defined(__loongarch64) +#elif defined(__loongarch_lp64) # define native_architecture() ARCHITECTURE_LOONGARCH64 # if defined(__loongarch_double_float) -# define LIB_ARCH_TUPLE "loongarch64-linux-gnuf64" +# define LIB_ARCH_TUPLE "loongarch64-linux-gnu" # elif defined(__loongarch_single_float) # define LIB_ARCH_TUPLE "loongarch64-linux-gnuf32" # elif defined(__loongarch_soft_float)