m4ri: do not autodetect some SIMD cpuflags

Co-authored-by: Reno Dakota <paparodeo@proton.me>
This commit is contained in:
Mauricio Collares
2025-01-13 14:42:32 +01:00
co-authored by Reno Dakota
parent ed4a395ea0
commit 59396491c5
+29
View File
@@ -19,6 +19,35 @@ stdenv.mkDerivation rec {
hash = "sha256-untwo0go8O8zNO0EyZ4n/n7mngSXLr3Z/FSkXA8ptnU=";
};
# based on the list in m4/m4_ax_ext.m4
configureFlags = builtins.map (s: "ax_cv_have_${s}_cpu_ext=no") (
[
"sha"
"xop"
]
++ lib.optional (!stdenv.hostPlatform.sse3Support) "sse3"
++ lib.optional (!stdenv.hostPlatform.ssse3Support) "ssse3"
++ lib.optional (!stdenv.hostPlatform.sse4_1Support) "sse41"
++ lib.optional (!stdenv.hostPlatform.sse4_2Support) "sse42"
++ lib.optional (!stdenv.hostPlatform.sse4_aSupport) "sse4a"
++ lib.optional (!stdenv.hostPlatform.aesSupport) "aes"
++ lib.optional (!stdenv.hostPlatform.avxSupport) "avx"
++ lib.optional (!stdenv.hostPlatform.fmaSupport) "fma3"
++ lib.optional (!stdenv.hostPlatform.fma4Support) "fma4"
++ lib.optional (!stdenv.hostPlatform.avx2Support) "avx2"
++ lib.optionals (!stdenv.hostPlatform.avx512Support) [
"avx512f"
"avx512cd"
"avx512pf"
"avx512er"
"avx512vl"
"avx512bw"
"avx512dq"
"avx512ifma"
"avx512vbmi"
]
);
doCheck = true;
nativeBuildInputs = [