From 8af1c4d03ddea0e654a96ca7e5c7cee0e1340547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Fri, 24 Jul 2020 09:18:41 +0200 Subject: [PATCH] oneDNN: compile without -msse4.1 --- pkgs/development/libraries/oneDNN/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/libraries/oneDNN/default.nix b/pkgs/development/libraries/oneDNN/default.nix index c20a06fc6bc..80daf83de83 100644 --- a/pkgs/development/libraries/oneDNN/default.nix +++ b/pkgs/development/libraries/oneDNN/default.nix @@ -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