tiledb: don't require AVX2 instructions

This disables AVX2 support when it is not supported by the `hostPlatform`'s CPU.
The newly added `useAVX2` option allows overriding the default.
This commit is contained in:
Sander Niemeijer 2023-07-28 16:22:40 +02:00
parent 0fa6394cbb
commit 0e9d57971c

View file

@ -17,6 +17,7 @@
, gtest
, doxygen
, fixDarwinDylibNames
, useAVX2 ? stdenv.hostPlatform.avx2Support
}:
stdenv.mkDerivation rec {
@ -34,7 +35,7 @@ stdenv.mkDerivation rec {
# unaccelerated routines.
cmakeFlags = [
"-DTILEDB_WERROR=0"
];
] ++ lib.optional (!useAVX2) "-DCOMPILER_SUPPORTS_AVX2=FALSE";
nativeBuildInputs = [
clang-tools