drat-trim: fix gcc-14 build
Without the change the build on `gcc-14` fails as:
drat-trim.c: In function 'read_lit':
drat-trim.c:989:10: error: implicit declaration of function 'getc_unlocked' [-Wimplicit-function-declaration]
989 | lc = getc_unlocked (S->proofFile);
| ^~~~~~~~~~~~
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
@@ -15,6 +16,15 @@ stdenv.mkDerivation {
|
||||
hash = "sha256-sV3A0f1TLSaTIdAtT6y8rU3ZS2UqEePJYSf3UySOlSA=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# gcc-14 build fix: https://github.com/marijnheule/drat-trim/pull/40
|
||||
(fetchpatch {
|
||||
name = "gcc-14-fix.patch";
|
||||
url = "https://github.com/marijnheule/drat-trim/commit/8186a7dc083a3951ba87e5ff35d36f1ea2c03f0d.patch";
|
||||
hash = "sha256-jgsOYcRYD2VGdOrXW9D8Jh80Nqd+Kp3d2IU+bNK1yGg=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile --replace gcc cc
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user