From dda3697558ae6b8ba32ee761a5130b2e8e5046cb Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sat, 7 Dec 2024 18:27:17 +0000 Subject: [PATCH] chore(native-comp): add *-autoloads.el files to compile deny list --- early-init.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/early-init.el b/early-init.el index 34629e7..6dd7fe7 100644 --- a/early-init.el +++ b/early-init.el @@ -14,8 +14,9 @@ (setq native-comp-async-query-on-exit t comp-async-query-on-exit t) -;; Prevent native-compiling .dir-locals.el files. -(let ((deny-list '("\\(?:[/\\\\]\\.dir-locals\\.el$\\)"))) +;; Prevent native-compiling .dir-locals.el and *-autoloads.el files. +(let ((deny-list '("\\(?:[/\\\\]\\.dir-locals\\.el$\\)" + "\\(?:[/\\\\][^/\\\\]+-autoloads\\.el$\\)"))) (cond ((boundp 'native-comp-jit-compilation-deny-list) (setq native-comp-jit-compilation-deny-list deny-list))