Skip to content

Commit

Permalink
microsoft-gsl: don't use -Werror for clang (#367310)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Dec 23, 2024
2 parents 02d93dd + e91492a commit 83468da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/by-name/mi/microsoft-gsl/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 83468da

Please sign in to comment.