accountservice: condition gcc_14 specific -Wno-error flags
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user