Remove eager native compilation of subr-trampolines
This was fixed upstream.
This commit is contained in:
parent
3a4f182a3c
commit
2d718cc86f
1 changed files with 0 additions and 36 deletions
|
@ -232,46 +232,11 @@ list remains lean."
|
||||||
(doom-log "Compiling %s" file)
|
(doom-log "Compiling %s" file)
|
||||||
(native-compile-async file))))
|
(native-compile-async file))))
|
||||||
|
|
||||||
(defun doom--bootstrap-trampolines ()
|
|
||||||
"Build the trampolines we need to prevent hanging."
|
|
||||||
(when (featurep 'comp)
|
|
||||||
;; HACK The following list was obtained by running 'doom build', waiting for
|
|
||||||
;; it to hang, then checking the eln-cache for trampolines. We
|
|
||||||
;; simulate running 'doom build' twice by compiling the trampolines
|
|
||||||
;; then restarting.
|
|
||||||
(let (restart)
|
|
||||||
(dolist (f '(abort-recursive-edit
|
|
||||||
describe-buffer-bindings
|
|
||||||
execute-kbd-macro
|
|
||||||
handle-switch-frame
|
|
||||||
load
|
|
||||||
make-indirect-buffer
|
|
||||||
make-process
|
|
||||||
message
|
|
||||||
read-char
|
|
||||||
read-key-sequence
|
|
||||||
select-window
|
|
||||||
set-window-buffer
|
|
||||||
top-level
|
|
||||||
use-global-map
|
|
||||||
use-local-map
|
|
||||||
write-region))
|
|
||||||
(unless (doom--find-eln-file
|
|
||||||
(concat comp-native-version-dir "/"
|
|
||||||
(comp-trampoline-filename f)))
|
|
||||||
(print! (info "Compiling trampoline for %s") f)
|
|
||||||
(comp-trampoline-compile f)
|
|
||||||
(setq restart t)))
|
|
||||||
(when restart
|
|
||||||
(throw 'exit :restart)))))
|
|
||||||
|
|
||||||
|
|
||||||
(defun doom-cli-packages-install ()
|
(defun doom-cli-packages-install ()
|
||||||
"Installs missing packages.
|
"Installs missing packages.
|
||||||
|
|
||||||
This function will install any primary package (i.e. a package with a `package!'
|
This function will install any primary package (i.e. a package with a `package!'
|
||||||
declaration) or dependency thereof that hasn't already been."
|
declaration) or dependency thereof that hasn't already been."
|
||||||
(doom--bootstrap-trampolines)
|
|
||||||
(doom-initialize-packages)
|
(doom-initialize-packages)
|
||||||
(print! (start "Installing packages..."))
|
(print! (start "Installing packages..."))
|
||||||
(let ((pinned (doom-package-pinned-list)))
|
(let ((pinned (doom-package-pinned-list)))
|
||||||
|
@ -311,7 +276,6 @@ declaration) or dependency thereof that hasn't already been."
|
||||||
|
|
||||||
(defun doom-cli-packages-build (&optional force-p)
|
(defun doom-cli-packages-build (&optional force-p)
|
||||||
"(Re)build all packages."
|
"(Re)build all packages."
|
||||||
(doom--bootstrap-trampolines)
|
|
||||||
(doom-initialize-packages)
|
(doom-initialize-packages)
|
||||||
(print! (start "(Re)building %spackages...") (if force-p "all " ""))
|
(print! (start "(Re)building %spackages...") (if force-p "all " ""))
|
||||||
(print-group!
|
(print-group!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue