staging-next: fix build errors around gcc_14 specific flags (#345339)

This commit is contained in:
Fabián Heredia Montiel 2024-09-29 17:07:05 -06:00 committed by GitHub
commit 0adbf52618
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ stdenv.mkDerivation rec {
patchShebangs build-aux/gpg_check_version.py
'';
env = lib.optionalAttrs stdenv.cc.isGNU {
env = lib.optionalAttrs (stdenv.cc.isGNU && (lib.versionAtLeast (lib.getVersion stdenv.cc.cc) "14")) {
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=implicit-function-declaration"
"-Wno-error=int-conversion"

View File

@ -74,7 +74,7 @@ stdenv.mkDerivation rec {
libxcrypt
];
env = lib.optionalAttrs stdenv.cc.isGNU {
env = lib.optionalAttrs (stdenv.cc.isGNU && (lib.versionAtLeast (lib.getVersion stdenv.cc.cc) "14")) {
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=deprecated-declarations"
"-Wno-error=implicit-function-declaration"