Unverified Commit 1e5c9a12 authored by Lin Jian's avatar Lin Jian Committed by GitHub
Browse files

emacs: make trivialBuild respect error tunables at bytecompile time (#394546)

parents c72eef1a e675cc06
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -19,7 +19,12 @@ lib.extendMkDerivation {
            foundMakefile=1
          fi

          emacs -l package -f package-initialize -L . --batch -f batch-byte-compile *.el
          emacs -l package -f package-initialize \
            --eval "(setq byte-compile-debug ${if finalAttrs.ignoreCompilationError then "nil" else "t"})" \
            --eval "(setq byte-compile-error-on-warn ${
              if finalAttrs.turnCompilationWarningToError then "t" else "nil"
            })" \
            -L . --batch -f batch-byte-compile *.el

          runHook postBuild
        '';