about summary refs log tree commit diff
path: root/pkgs/development/tools/packcc
diff options
context:
space:
mode:
authorRandy Eckenrode <randy@largeandhighquality.com>2023-11-08 18:58:03 -0500
committerRandy Eckenrode <randy@largeandhighquality.com>2023-11-08 19:11:45 -0500
commit75f32855304ecf6306ee7060bb93c22220a8d202 (patch)
treea48a89152a0fe398fb6bb2e1f4a02d51729989cd /pkgs/development/tools/packcc
parent3925a35d86afa37405290ba59a42442643b3b69f (diff)
packcc: fix failing test due to clang 16
Downgrade -Wstrict-prototypes and -Wint-conversion to non-errors, so the
code_generation.d test does not fail unexpectedly.
Diffstat (limited to 'pkgs/development/tools/packcc')
-rw-r--r--pkgs/development/tools/packcc/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/tools/packcc/default.nix b/pkgs/development/tools/packcc/default.nix
index b16b0491c9b63..4f618665573c0 100644
--- a/pkgs/development/tools/packcc/default.nix
+++ b/pkgs/development/tools/packcc/default.nix
@@ -35,6 +35,8 @@ stdenv.mkDerivation rec {
 
     # Disable a failing test.
     rm -rf ../../tests/style.d
+  '' + lib.optionalString stdenv.cc.isClang ''
+    export NIX_CFLAGS_COMPILE+=' -Wno-error=strict-prototypes -Wno-error=int-conversion'
   '';
 
   installPhase = ''