microsoft-gsl: don't use -Werror for clang

too many warnings
This commit is contained in:
Reno Dakota 2024-12-21 23:05:42 -08:00
parent 2ab355a7e4
commit e91492a3e4
No known key found for this signature in database

View File

@ -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)