Skip to content

Commit 1e5c9a1

Browse files
authored
emacs: make trivialBuild respect error tunables at bytecompile time (#394546)
2 parents c72eef1 + e675cc0 commit 1e5c9a1

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)