Merge pull request #93747 from danieldk/onednn-no-sse4.1

oneDNN: compile without -msse4.1
This commit is contained in:
Daniël de Kok 2020-07-25 13:36:41 +02:00 committed by GitHub
commit fdbae69e8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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