Fix #4995: adapt to more renamed comp-* symbols

Two more variables were renamed upstream.
This commit is contained in:
Henrik Lissner 2021-05-11 19:01:56 -04:00
parent 5fca440beb
commit 6ad4f0698e
3 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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)

View File

@ -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