mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-18 16:06:56 -05:00
Update for the latest native-compile-async API
Renamed `comp-deferred-compilation-black-list` to `comp-deferred-compilation-deny-list`. Removed the `late` load flag which is no longer required. Added a check against the deny list when compiling all Elisp on the load-path, so we don't inadvertently compile something we shouldn't. Added compatibility shims to ease transition from older builds of native-comp.
This commit is contained in:
@@ -225,9 +225,12 @@ list remains lean."
|
||||
collect path)
|
||||
for file in (doom-files-in paths :match "\\.el\\(?:\\.gz\\)?$")
|
||||
if (and (file-exists-p (byte-compile-dest-file file))
|
||||
(not (doom--find-eln-file (doom--eln-file-name file)))) do
|
||||
(not (doom--find-eln-file (doom--eln-file-name file)))
|
||||
(not (cl-some (lambda (re)
|
||||
(string-match-p re file))
|
||||
comp-deferred-compilation-deny-list))) do
|
||||
(doom-log "Compiling %s" file)
|
||||
(native-compile-async file nil 'late))))
|
||||
(native-compile-async file))))
|
||||
|
||||
(defun doom--bootstrap-trampolines ()
|
||||
"Build the trampolines we need to prevent hanging."
|
||||
|
Reference in New Issue
Block a user