From 0e8abf8bb9cd4cd597e22a1d472f9613966bf0bb Mon Sep 17 00:00:00 2001 From: Rutherther Date: Fri, 29 Aug 2025 20:20:43 +0200 Subject: [PATCH] fix: do not se native comp variables if no native comp available --- early-init.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/early-init.el b/early-init.el index 17bfd7e11cd137816069523e3bad6c6c5af7606e..0821bbaf659d0ca3dc63c2062c680f467bacbcdd 100644 --- a/early-init.el +++ b/early-init.el @@ -3,8 +3,9 @@ (eval-and-compile (setq load-prefer-newer t)) -(setq native-comp-jit-compilation t) -(setq native-comp-async-report-warnings-errors nil) +(when (native-comp-available-p) + (setq native-comp-jit-compilation t) + (setq native-comp-async-report-warnings-errors nil)) ;; ------------------------------------------------------------------------------------------ ;; Speed optimization taken from igloo.el, see https://github.com/VojtechStep/igloo.el