Skip to content

Commit b3805a0

Browse files
authored
chore: upgrade LuaJIT to the latest (#278)
Signed-off-by: spacewander <[email protected]>
1 parent 9382ae0 commit b3805a0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build-apisix-base.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ no_pool_patch=${no_pool_patch:-}
112112
grpc_engine_path="-DNGX_GRPC_CLI_ENGINE_PATH=$OR_PREFIX/libgrpc_engine.so -DNGX_HTTP_GRPC_CLI_ENGINE_PATH=$OR_PREFIX/libgrpc_engine.so"
113113

114114
cd openresty-${or_ver} || exit 1
115+
# FIXME: remove this once 1.21.4.2 is released
116+
rm -rf bundle/LuaJIT-2.1-20220411
117+
lj_ver=2.1-20230119
118+
wget "https://github.com/openresty/luajit2/archive/v$lj_ver.tar.gz" -O "LuaJIT-$lj_ver.tar.gz"
119+
tar -xzf LuaJIT-$lj_ver.tar.gz
120+
mv luajit2-* bundle/LuaJIT-2.1-20220411
121+
115122
./configure --prefix="$OR_PREFIX" \
116123
--with-cc-opt="-DAPISIX_BASE_VER=$version $grpc_engine_path $cc_opt" \
117124
--with-ld-opt="-Wl,-rpath,$OR_PREFIX/wasmtime-c-api/lib $ld_opt" \

0 commit comments

Comments
 (0)