Merge pull request #139748 from trofi/fix-py3c
py3c: unconditionally drop -Werror (fix gcc-11 build)
commit441e405c77f73522cc6e39b864efd3facaffb8e2
authorajs124 <ajs124@users.noreply.github.com>
dateSun 3 Oct 2021, 18:29 (5 years ago)
parentcb71590c1ff7da
pkgs/development/libraries/py3c/default.nix+3−1
@@ -11,7 +11,9 @@ stdenv.mkDerivation rec {
1111 sha256 = "04i2z7hrig78clc59q3i1z2hh24g7z1bfvxznlzxv00d4s57nhpi";
1212 };
1313
14− postPatch = lib.optionalString stdenv.cc.isClang ''
14+ postPatch = ''
15+ # clang and gcc-11 complain about 'register' keywords used by
16+ # python-2.7. Let's avoid blanket -Werror.
1517 substituteInPlace test/setup.py \
1618 --replace "'-Werror', " ""
1719 '';