make compile: fix error in emacs-lisp

```
In toplevel form:
../modules/lang/emacs-lisp/autoload.el:71:21:Error: Wrong type argument: listp, "~/.emacs.d/modules/lang/emacs-lisp/autoload"
✕ Failed to compile modules/lang/emacs-lisp/autoload.el
```

This apparently attempts to get compiled multiple times, avoid that by
attempting to compile only if it is not compiled already.
This commit is contained in:
Edwin Török 2018-09-09 21:03:54 +01:00
parent 6eb95c98ea
commit 9d445c8a1f

View File

@ -66,7 +66,7 @@ library/userland functions"
;; `+emacs-lisp-highlight-vars-and-faces' is a potentially expensive function ;; `+emacs-lisp-highlight-vars-and-faces' is a potentially expensive function
;; and should be byte-compiled, no matter what, to ensure it runs as fast as ;; and should be byte-compiled, no matter what, to ensure it runs as fast as
;; possible: ;; possible:
(eval-when-compile (when (not (byte-code-function-p (symbol-function '+emacs-lisp-highlight-vars-and-faces)))
(with-no-warnings (with-no-warnings
(byte-compile #'+emacs-lisp-highlight-vars-and-faces))) (byte-compile #'+emacs-lisp-highlight-vars-and-faces)))