From ba124d9613fa6304f34009f02316794e40c76f62 Mon Sep 17 00:00:00 2001 From: YingJie Fu Date: Mon, 5 Aug 2024 23:27:16 -0700 Subject: [PATCH] build: use the system lib luajit for s390x --- cmake/s390x.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmake/s390x.cmake b/cmake/s390x.cmake index af70127ceb4..20d42ab624c 100644 --- a/cmake/s390x.cmake +++ b/cmake/s390x.cmake @@ -3,6 +3,10 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(SystemZ|s390x)") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsigned-char") message(STATUS "Cannot build WAMR on this platform, so WASM support is disabled.") set(FLB_WASM OFF) - message(STATUS "This platform does not support LuaJIT, so it's disabled.") - set(FLB_LUAJIT OFF) + if(FLB_LUAJIT) + if(NOT FLB_PREFER_SYSTEM_LIB_LUAJIT) + message(WARNING "LuaJIT disabled. This platform does not support built in LuaJIT, please install LuaJIT as system lib and try again with FLB_PREFER_SYSTEM_LIB_LUAJIT on.") + set(FLB_LUAJIT OFF) + endif() + endif() endif ()