Skip to content

Commit

Permalink
build: use the system lib luajit for s390x (fluent#9172)
Browse files Browse the repository at this point in the history
Signed-off-by: YingJie Fu <[email protected]>
  • Loading branch information
rightblank authored and legendary-acp committed Oct 1, 2024
1 parent 2a47772 commit 1cd7767
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Fluent Bit is fully supported on Windows environments, get started with [these i

#### Running on s390x

Fluent Bit is supported on Linux on IBM Z(s390x), but the WASM and LUA filter plugins are not.
Fluent Bit runs on Linux on IBM Z(s390x), but the WASM filter plugin is not. For the LUA filter plugin, it runs when `libluajit` is installed on the system and fluent bit is built with `FLB_LUAJIT` and `FLB_PREFER_SYSTEM_LIB_LUAJIT` on.

### Plugins: Inputs, Filters and Outputs

Expand Down
8 changes: 6 additions & 2 deletions cmake/s390x.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 is disabled, this platform does not support built-in LuaJIT. To use lua filter on this platform, install LuaJIT as system lib and build again with both FLB_LUAJIT and FLB_PREFER_SYSTEM_LIB_LUAJIT on.")
set(FLB_LUAJIT OFF)
endif()
endif()
endif ()

0 comments on commit 1cd7767

Please sign in to comment.