Skip to content

Commit

Permalink
build: use the system lib luajit for s390x
Browse files Browse the repository at this point in the history
Signed-off-by: YingJie Fu <[email protected]>
  • Loading branch information
YingJie Fu committed Aug 8, 2024
1 parent 7256406 commit 41a50b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Fluent Bit allows to collect log events or metrics from different sources, proce

Fluent Bit comes with full SQL [Stream Processing](https://docs.fluentbit.io/manual/stream-processing/introduction) capabilities: data manipulation and analytics using SQL queries.

Fluent Bit runs on x86_64, x86, arm32v7, and arm64v8 architectures.
Fluent Bit runs on x86_64, x86, s390x, arm32v7, and arm64v8 architectures.



Expand Down 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 is supported on Linux on IBM Z(s390x), but the WASM filter plugin is not. For the LUA filter plugin, it is only supported 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 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 ()

0 comments on commit 41a50b9

Please sign in to comment.