1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

Merge pull request #290043 from trofi/mps-gcc-13-fix

mps: fix `gcc-13` build failure by dropping `-Werror`
This commit is contained in:
kirillrdy 2024-02-20 18:41:40 +11:00 committed by GitHub
commit 6a32700287
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,17 +16,17 @@ stdenv.mkDerivation rec {
hash = "sha256-3ql3jWLccgnQHKf23B1en+nJ9rxqmHcWd7aBr93YER0=";
};
postPatch = ''
# Disable -Werror to avoid biuld failure on fresh toolchains like
# gcc-13.
substituteInPlace code/gc.gmk --replace-fail '-Werror ' ' '
substituteInPlace code/gp.gmk --replace-fail '-Werror ' ' '
substituteInPlace code/ll.gmk --replace-fail '-Werror ' ' '
'';
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ sqlite ];
# needed for 1.116.0 to build with gcc7
env.NIX_CFLAGS_COMPILE = toString [
"-Wno-implicit-fallthrough"
"-Wno-error=clobbered"
"-Wno-error=cast-function-type"
];
meta = {
description = "A flexible memory management and garbage collection library";
homepage = "https://www.ravenbrook.com/project/mps";