mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
Merge pull request #139748 from trofi/fix-py3c
py3c: unconditionally drop -Werror (fix gcc-11 build)
This commit is contained in:
commit
441e405c77
1 changed files with 3 additions and 1 deletions
|
@ -11,7 +11,9 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "04i2z7hrig78clc59q3i1z2hh24g7z1bfvxznlzxv00d4s57nhpi";
|
||||
};
|
||||
|
||||
postPatch = lib.optionalString stdenv.cc.isClang ''
|
||||
postPatch = ''
|
||||
# clang and gcc-11 complain about 'register' keywords used by
|
||||
# python-2.7. Let's avoid blanket -Werror.
|
||||
substituteInPlace test/setup.py \
|
||||
--replace "'-Werror', " ""
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue