Skip to content

Commit cf5653b

Browse files
authored
upgrade: luajit to version 2.1-20240815 (#416)
1 parent c92e592 commit cf5653b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build-api7ee-runtime.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,15 @@ grpc_engine_path="-DNGX_GRPC_CLI_ENGINE_PATH=$OR_PREFIX/libgrpc_engine.so -DNGX_
158158

159159
cd openresty-${OPENRESTY_VERSION} || exit 1
160160

161+
if [[ "$OPENRESTY_VERSION" == 1.21.4.4 ]] ; then
162+
# upgrade luajit
163+
rm -rf bundle/LuaJIT-2.1-20230410.1
164+
lj_ver=2.1-20240815
165+
wget "https://github.com/openresty/luajit2/archive/v$lj_ver.tar.gz" -O "LuaJIT-$lj_ver.tar.gz"
166+
tar -xzf LuaJIT-$lj_ver.tar.gz
167+
mv luajit2-* bundle/LuaJIT-$lj_ver
168+
fi
169+
161170
or_limit_ver=0.08
162171
if [ ! -d "bundle/lua-resty-limit-traffic-$or_limit_ver" ]; then
163172
echo "ERROR: the official repository of lua-resty-limit-traffic has been updated, please sync to API7's repository." >&2

0 commit comments

Comments
 (0)