rspamd: fix builds on non-x86_64-linux platforms

LuaJIT is built in rspamd only on x86_64-linux, and LuaJIT support
became enabled by default in 2.6, breaking builds without it. This
commit explicitly disables LuaJIT support on non-x86_64 architectures.
This commit is contained in:
Vika 2020-11-16 16:13:09 +03:00
parent ad37c2c445
commit 71998ddc33
No known key found for this signature in database
GPG Key ID: 4F62CD07CE64796A

View File

@ -33,7 +33,8 @@ stdenv.mkDerivation rec {
"-DLOGDIR=/var/log/rspamd"
"-DLOCAL_CONFDIR=/etc/rspamd"
"-DENABLE_JEMALLOC=ON"
] ++ lib.optional withHyperscan "-DENABLE_HYPERSCAN=ON";
] ++ lib.optional withHyperscan "-DENABLE_HYPERSCAN=ON"
++ lib.optional (!withLuaJIT) "-DENABLE_LUAJIT=OFF";
passthru.tests.rspamd = nixosTests.rspamd;