Skip to content

Commit

Permalink
chore(early-init): set native compile pattern in early-init.el
Browse files Browse the repository at this point in the history
  • Loading branch information
jimehk committed Nov 21, 2024
1 parent 0bb354b commit e0c300c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions early-init.el
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@

;; Prevent native-compiling .dir-locals.el files.
(let ((deny-list '("\\(?:[/\\\\]\\.dir-locals\\.el$\\)")))
(if (boundp 'native-comp-deferred-compilation-deny-list)
(setq native-comp-deferred-compilation-deny-list deny-list)
(setq comp-deferred-compilation-deny-list deny-list)))
(cond
((boundp 'native-comp-jit-compilation-deny-list)
(setq native-comp-jit-compilation-deny-list deny-list))
((boundp 'native-comp-deferred-compilation-deny-list)
(setq native-comp-deferred-compilation-deny-list deny-list))
((boundp 'comp-deferred-compilation-deny-list)
(setq comp-deferred-compilation-deny-list deny-list))))

(when (or (boundp 'comp-eln-load-path) (boundp 'native-comp-eln-load-path))
(let ((eln-cache-dir (expand-file-name "cache/eln-cache/"
Expand Down

0 comments on commit e0c300c

Please sign in to comment.