emacs: check for native-comp support before configuring it
1 file changed, 4 insertions(+), 3 deletions(-)
jump to
M user/emacs/early-init.el → user/emacs/early-init.el
@@ -5,9 +5,10 @@ frame-inhibit-implied-resize t byte-compile-warnings '(not free-vars unresolved noruntime lexical make-local cl-functions)) (require 'xdg) -(startup-redirect-eln-cache - (expand-file-name "emacs/native-compile" - (xdg-cache-home))) +(when (native-comp-available-p) + (startup-redirect-eln-cache + (expand-file-name "emacs/native-compile" + (xdg-cache-home)))) ;; Disable all the bars, unless on macOS, in which case, keep the menu bar. (unless (eq window-system 'ns)