From ab8fed0a96a55107895e6105e7b0e4b6735156d7 Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Thu, 12 Mar 2020 22:36:39 +0000 Subject: [PATCH] * Do not produce .eln files when a byte compilation error happen Have the byte compiler signal an error when compilation fails to stop native compilation too. --- lisp/emacs-lisp/comp.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index 808a705a5cb..64eb46cc38d 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -2118,6 +2118,9 @@ Return the compilation unit file name." (list "not a symbol function or file" input))) (let ((data input) (comp-native-compiling t) + ;; Have the byte compiler signal an error when compilation + ;; fails. + (byte-compile-debug t) (comp-ctxt (make-comp-ctxt :output (if (symbolp input) -- 2.39.5