onnxruntime: fix build with clang 16

This commit is contained in:
Weijia Wang
2023-11-05 19:49:04 +01:00
parent d8fe893a0b
commit 1acb4aaf7d
@@ -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 = ''