microsoft-gsl: don't use -Werror for clang
too many warnings
This commit is contained in:
parent
2ab355a7e4
commit
e91492a3e4
@ -25,8 +25,8 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
buildInputs = [ gtest ];
|
||||
|
||||
# error: unsafe buffer access
|
||||
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-unsafe-buffer-usage";
|
||||
# negate the `-Werror` flag as Microsoft doesn't build with clang
|
||||
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error";
|
||||
|
||||
patches = [
|
||||
# nvcc doesn't recognize the "gsl" attribute namespace (microsoft/onnxruntime#13573)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user