From b46f3dc542e11cad254e557c6ca614d8301fc9c3 Mon Sep 17 00:00:00 2001 From: lyn1001 Date: Mon, 26 Dec 2022 14:30:56 +0800 Subject: [PATCH] add support for LoongArch (cherry picked from commit 9255caa48a2ac34c40be7e7e3a8a282ffa762501) --- lua.spec | 5 ++++- luaconf.h | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lua.spec b/lua.spec index 7989b1a..3a22709 100644 --- a/lua.spec +++ b/lua.spec @@ -6,7 +6,7 @@ Name: lua Version: 5.4.3 -Release: 9 +Release: 10 Summary: A powerful, efficient, lightweight, embeddable scripting language License: MIT URL: http://www.lua.org/ @@ -141,6 +141,9 @@ LD_LIBRARY_PATH=$RPM_BUILD_ROOT/%{_libdir} $RPM_BUILD_ROOT/%{_bindir}/lua -e"_U= %{_mandir}/man1/lua*.1* %changelog +* Mon Dec 26 2022 liyanan - 5.4.3-10 +- add support for LoongArch + * Wed Sep 21 2022 renhongxun - 5.4.3-9 - bugfix with upstream patch diff --git a/luaconf.h b/luaconf.h index 2b10184..f7ebe97 100644 --- a/luaconf.h +++ b/luaconf.h @@ -54,6 +54,8 @@ #include "luaconf-mips.h" #elif defined(__riscv) #include "luaconf-riscv64.h" +#elif defined(__loongarch64) +#include "luaconf-loongarch64.h" #else #error "The lua-devel package is not usable with the architecture." #endif -- Gitee