summaryrefslogtreecommitdiff
path: root/lisp/startup.el
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2022-02-11 15:19:56 +0100
committerAndrea Corallo <akrl@sdf.org>2022-02-11 15:21:47 +0100
commitefaa0ebca9ec445329643fea2f9fe883d7ccdc3a (patch)
treebbb3cca93bb18d068a9cf7150bad67271bb140ba /lisp/startup.el
parentc30106ce9f713edea173cbb301747cbbe3766257 (diff)
downloademacs-efaa0ebca9ec445329643fea2f9fe883d7ccdc3a.tar.gz
* lisp/startup.el (normal-top-level): Small code move, improve 202d3be873.
Diffstat (limited to 'lisp/startup.el')
-rw-r--r--lisp/startup.el16
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index d369f3ef84e..9ebd4c1a707 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -540,15 +540,15 @@ It is the default value of the variable `top-level'."
(setq user-emacs-directory
(startup--xdg-or-homedot startup--xdg-config-home-emacs nil))
- (unless (native-comp-available-p)
- ;; Disable deferred async compilation and trampoline synthesis
- ;; in this session. This is necessary if libgccjit is not
- ;; available on MS-Windows, but Emacs was built with
- ;; native-compilation support.
- (setq native-comp-deferred-compilation nil
- comp-enable-subr-trampolines nil))
-
(when (featurep 'native-compile)
+ (unless (native-comp-available-p)
+ ;; Disable deferred async compilation and trampoline synthesis
+ ;; in this session. This is necessary if libgccjit is not
+ ;; available on MS-Windows, but Emacs was built with
+ ;; native-compilation support.
+ (setq native-comp-deferred-compilation nil
+ comp-enable-subr-trampolines nil))
+
;; Form `native-comp-eln-load-path'.
(let ((path-env (getenv "EMACSNATIVELOADPATH")))
(when path-env