emacs: Ignore large file warnings for native compilation

This was blocking building phps-mode with native compilation enabled.
This commit is contained in:
adisbladis 2021-12-19 08:04:56 -08:00
parent 87a43a4b22
commit 9a86a53ec5

View file

@ -86,7 +86,7 @@ stdenv.mkDerivation ({
find $out/share/emacs -type f -name '*.el' -print0 \
| xargs -0 -n 1 -I {} -P $NIX_BUILD_CORES sh -c \
"emacs --batch -f batch-native-compile {} || true"
"emacs --batch --eval '(setq large-file-warning-threshold nil)' -f batch-native-compile {} || true"
'';
}