onnxruntime: fix build with clang 16
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user