Skip to content

Commit 8af1c4d

Browse files
committed
oneDNN: compile without -msse4.1
1 parent ac33603 commit 8af1c4d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pkgs/development/libraries/oneDNN/default.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ stdenv.mkDerivation rec {
2020

2121
doCheck = true;
2222

23+
cmakeFlags = [
24+
# oneDNN compiles with -msse4.1 by default, but not all x86_64
25+
# CPUs support SSE 4.1.
26+
"-DDNNL_ARCH_OPT_FLAGS="
27+
];
28+
2329
# The test driver doesn't add an RPath to the build libdir
2430
preCheck = ''
2531
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/src

0 commit comments

Comments
 (0)