From 4bdbf3c76394e6d83f4a2bbb582ae0549674512c Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Thu, 10 Feb 2022 09:46:31 +0100 Subject: [PATCH] * lisp/startup.el (normal-top-level): Disable native-comp if not available --- lisp/startup.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/startup.el b/lisp/startup.el index 71e492e3b4..cccaa90e9c 100644 --- a/lisp/startup.el +++ b/lisp/startup.el @@ -537,6 +537,10 @@ normal-top-level (setq user-emacs-directory (startup--xdg-or-homedot startup--xdg-config-home-emacs nil)) + (unless (native-comp-available-p) + (setq native-comp-deferred-compilation nil + comp-enable-subr-trampolines nil)) + (when (featurep 'native-compile) ;; Form `native-comp-eln-load-path'. (let ((path-env (getenv "EMACSNATIVELOADPATH"))) -- 2.20.1