Merge pull request #221543 from wegank/volk-darwin

volk: apply cmake flags from homebrew
This commit is contained in:
Weijia Wang 2023-03-17 07:45:50 +02:00 committed by GitHub
commit 6c57c5de32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,11 @@ stdenv.mkDerivation rec {
cmakeFlags = lib.optionals (!enableModTool) [
"-DENABLE_MODTOOL=OFF"
] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
"-DVOLK_CPU_FEATURES=OFF"
# offset 17912 in1: -0.0366274 in2: -0.0366173 tolerance was: 1e-05
# volk_32f_log2_32f: fail on arch neon
"-DCMAKE_CTEST_ARGUMENTS=--exclude-regex;qa_volk_32f_log2_32f"
];
postInstall = lib.optionalString (!stdenv.isDarwin) ''