oneDNN: compile without -msse4.1

This commit is contained in:
Daniël de Kok 2020-07-24 09:18:41 +02:00
parent ac33603b66
commit 8af1c4d03d

View File

@ -20,6 +20,12 @@ stdenv.mkDerivation rec {
doCheck = true;
cmakeFlags = [
# oneDNN compiles with -msse4.1 by default, but not all x86_64
# CPUs support SSE 4.1.
"-DDNNL_ARCH_OPT_FLAGS="
];
# The test driver doesn't add an RPath to the build libdir
preCheck = ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/src