From f6cd7077e093a2453c0290ffa63cba9546d4aa3c Mon Sep 17 00:00:00 2001 From: Hailiang Date: Fri, 14 Mar 2025 18:28:30 +0800 Subject: [PATCH] add sw_64 support (cherry picked from commit baa40b5afdce5f46e7807318c29cc7ab48e9b69d) --- lua.spec | 5 ++++- luaconf.h | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lua.spec b/lua.spec index 55ed186..29b057b 100644 --- a/lua.spec +++ b/lua.spec @@ -6,7 +6,7 @@ Name: lua Version: 5.4.6 -Release: 2 +Release: 3 Summary: A powerful, efficient, lightweight, embeddable scripting language License: MIT URL: http://www.lua.org/ @@ -132,6 +132,9 @@ LD_LIBRARY_PATH=$RPM_BUILD_ROOT/%{_libdir} $RPM_BUILD_ROOT/%{_bindir}/lua -e"_U= %{_mandir}/man1/lua*.1* %changelog +* Fri Mar 14 2025 mahailiang - 5.4.6-3 +- add sw_64 support + * Tue Aug 13 2024 wangjiang - 5.4.6-2 - fix Segmentation fault diff --git a/luaconf.h b/luaconf.h index f7ebe97..4b0b9d7 100644 --- a/luaconf.h +++ b/luaconf.h @@ -56,6 +56,8 @@ #include "luaconf-riscv64.h" #elif defined(__loongarch64) #include "luaconf-loongarch64.h" +#elif defined(__sw_64__) +#include "luaconf-sw_64.h" #else #error "The lua-devel package is not usable with the architecture." #endif