Skip to content

Commit e675cc0

Browse files
committed
emacs: make trivialBuild respect error tunables at bytecompile time
This is a follow-up of 2f7cc5a.
1 parent 52faf48 commit e675cc0

File tree

1 file changed

+6
-1
lines changed
  • pkgs/applications/editors/emacs/build-support

1 file changed

+6
-1
lines changed

pkgs/applications/editors/emacs/build-support/trivial.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ lib.extendMkDerivation {
1919
foundMakefile=1
2020
fi
2121
22-
emacs -l package -f package-initialize -L . --batch -f batch-byte-compile *.el
22+
emacs -l package -f package-initialize \
23+
--eval "(setq byte-compile-debug ${if finalAttrs.ignoreCompilationError then "nil" else "t"})" \
24+
--eval "(setq byte-compile-error-on-warn ${
25+
if finalAttrs.turnCompilationWarningToError then "t" else "nil"
26+
})" \
27+
-L . --batch -f batch-byte-compile *.el
2328
2429
runHook postBuild
2530
'';

0 commit comments

Comments
 (0)