Skip to content

Commit

Permalink
Turn off a new GCC warning that forbids build of older Emacsens
Browse files Browse the repository at this point in the history
  • Loading branch information
akirak committed Jan 1, 2025
1 parent 2cacaf6 commit ace2986
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions emacs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ stdenv.mkDerivation rec {
''
];

env = lib.optionalAttrs (stdenv.cc.isGNU && lib.versionOlder version "24.3") {
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=implicit-function-declaration"
];
};

installTargets = "tags install";

# Create site-start.el which is needed by the wrapper
Expand Down

0 comments on commit ace2986

Please sign in to comment.