fluent-bit: disable SIMD on riscv64

FLB_SIMD=Auto builds the whole binary with -march=rv64gcv_zba when the
compiler accepts it, which SIGILLs on rv64gc cores like the SG2042.
This commit is contained in:
Jörg Thalheim
2026-09-06 14:20:25 +02:00
parent af8ad534c6
commit 00df6df918

View File

@@ -85,6 +85,10 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeBool "FLB_RELEASE" true)
(lib.cmakeBool "FLB_PREFER_SYSTEM_LIBS" true)
]
++ lib.optionals stdenv.hostPlatform.isRiscV64 [
# Auto would raise the baseline to rv64gcv_zba
(lib.cmakeFeature "FLB_SIMD" "Off")
]
++ lib.optionals stdenv.cc.isClang [
# `FLB_SECURITY` causes bad linker options for Clang to be set.
(lib.cmakeBool "FLB_SECURITY" false)