Merge pull request #139748 from trofi/fix-py3c

py3c: unconditionally drop -Werror (fix gcc-11 build)

authored by ajs124 and committed by GitHub 441e405c cb715900

+3 -1
+3 -1
pkgs/development/libraries/py3c/default.nix
··· 11 sha256 = "04i2z7hrig78clc59q3i1z2hh24g7z1bfvxznlzxv00d4s57nhpi"; 12 }; 13 14 - postPatch = lib.optionalString stdenv.cc.isClang '' 15 substituteInPlace test/setup.py \ 16 --replace "'-Werror', " "" 17 '';
··· 11 sha256 = "04i2z7hrig78clc59q3i1z2hh24g7z1bfvxznlzxv00d4s57nhpi"; 12 }; 13 14 + postPatch = '' 15 + # clang and gcc-11 complain about 'register' keywords used by 16 + # python-2.7. Let's avoid blanket -Werror. 17 substituteInPlace test/setup.py \ 18 --replace "'-Werror', " "" 19 '';