staging-next: fix build errors around gcc_14 specific flags (#345339)
This commit is contained in:
commit
0adbf52618
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user