summary refs log tree commit diff
path: root/pkgs/development/libraries/onnxruntime/default.nix
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-11-05 19:49:04 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-11-05 19:49:04 +0100
commit1acb4aaf7d02798efbd1a4de5f53c4eed6d4ffc4 (patch)
treec1193d9882a8c18324c6ae0f371700d5f196cd26 /pkgs/development/libraries/onnxruntime/default.nix
parentd8fe893a0b0b05a6e17c3380da292e9da4a572a3 (diff)
downloadnixpkgs-1acb4aaf7d02798efbd1a4de5f53c4eed6d4ffc4.tar
nixpkgs-1acb4aaf7d02798efbd1a4de5f53c4eed6d4ffc4.tar.gz
nixpkgs-1acb4aaf7d02798efbd1a4de5f53c4eed6d4ffc4.tar.bz2
nixpkgs-1acb4aaf7d02798efbd1a4de5f53c4eed6d4ffc4.tar.lz
nixpkgs-1acb4aaf7d02798efbd1a4de5f53c4eed6d4ffc4.tar.xz
nixpkgs-1acb4aaf7d02798efbd1a4de5f53c4eed6d4ffc4.tar.zst
nixpkgs-1acb4aaf7d02798efbd1a4de5f53c4eed6d4ffc4.zip
onnxruntime: fix build with clang 16
Diffstat (limited to 'pkgs/development/libraries/onnxruntime/default.nix')
-rw-r--r--pkgs/development/libraries/onnxruntime/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/libraries/onnxruntime/default.nix b/pkgs/development/libraries/onnxruntime/default.nix
index 5252875b27e..7a8b8570f62 100644
--- a/pkgs/development/libraries/onnxruntime/default.nix
+++ b/pkgs/development/libraries/onnxruntime/default.nix
@@ -154,6 +154,13 @@ stdenv.mkDerivation rec {
     "-Donnxruntime_ENABLE_PYTHON=ON"
   ];
 
+  env = lib.optionalAttrs stdenv.cc.isClang {
+    NIX_CFLAGS_COMPILE = toString [
+      "-Wno-error=deprecated-declarations"
+      "-Wno-error=unused-but-set-variable"
+    ];
+  };
+
   doCheck = true;
 
   postPatch = ''