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:
parent
0fa6394cbb
commit
0e9d57971c
|
@ -17,6 +17,7 @@
|
||||||
, gtest
|
, gtest
|
||||||
, doxygen
|
, doxygen
|
||||||
, fixDarwinDylibNames
|
, fixDarwinDylibNames
|
||||||
|
, useAVX2 ? stdenv.hostPlatform.avx2Support
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -34,7 +35,7 @@ stdenv.mkDerivation rec {
|
||||||
# unaccelerated routines.
|
# unaccelerated routines.
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DTILEDB_WERROR=0"
|
"-DTILEDB_WERROR=0"
|
||||||
];
|
] ++ lib.optional (!useAVX2) "-DCOMPILER_SUPPORTS_AVX2=FALSE";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
clang-tools
|
clang-tools
|
||||||
|
|
Loading…
Reference in a new issue