mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-19 22:30:23 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user