microsoft-gsl: don't use -Werror for clang (#367310)

This commit is contained in:
Vladimír Čunát
2024-12-23 14:23:56 +01:00
+2 -2
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)