Skip to content

Commit

Permalink
Fix doomemacs#4995: adapt to more renamed comp-* symbols
Browse files Browse the repository at this point in the history
Two more variables were renamed upstream.
  • Loading branch information
hlissner committed May 11, 2021
1 parent 5fca440 commit 6ad4f06
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions core/cli/autoloads.el
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ one wants that.")
'(doom-modules
doom-disabled-packages
comp-deferred-compilation-deny-list
native-comp-deferred-compilation-deny-list
load-path
auto-mode-alist
interpreter-mode-alist
Expand Down
6 changes: 4 additions & 2 deletions core/core.el
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,10 @@ users).")
;;
;;; Native Compilation support (http://akrl.sdf.org/gccemacs.html)

;; REVIEW Remove me after a couple weeks.
(when (boundp 'comp-eln-load-path)
;; REVIEW Remove after a couple months
(when (boundp 'comp-deferred-compilation)
(defvaralias 'native-comp-deferred-compilation 'comp-deferred-compilation)
(defvaralias 'native-comp-deferred-compilation-deny-list 'comp-deferred-compilation-deny-list)
(defvaralias 'native-comp-eln-load-path 'comp-eln-load-path)
(defvaralias 'native-comp-warning-on-missing-source 'comp-warning-on-missing-source)
(defvaralias 'native-comp-driver-options 'comp-native-driver-options)
Expand Down
5 changes: 4 additions & 1 deletion early-init.el
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
;; Prevent unwanted runtime compilation for gccemacs (native-comp) users;
;; packages are compiled ahead-of-time when they are installed and site files
;; are compiled when gccemacs is installed.
(setq comp-deferred-compilation nil)
;; REVIEW Remove after a couple months
(if (boundp 'comp-deferred-compilation)
(setq comp-deferred-compilation nil)
(setq native-comp-deferred-compilation nil))

;; In noninteractive sessions, prioritize non-byte-compiled source files to
;; prevent the use of stale byte-code. Otherwise, it saves us a little IO time
Expand Down

0 comments on commit 6ad4f06

Please sign in to comment.