mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix: only check for major emacs version changes
Bytecode is typically forwards-incompatible across major releases, not minor ones.
This commit is contained in:
@ -108,11 +108,11 @@
|
||||
;; up/downgraded. This is because byte-code isn't backwards compatible, and many
|
||||
;; packages (including Doom), bake in absolute paths into their caches that need
|
||||
;; to be refreshed.
|
||||
(let ((old-version (eval-when-compile emacs-version)))
|
||||
(unless (equal emacs-version old-version)
|
||||
(let ((old-version (eval-when-compile emacs-major-version)))
|
||||
(unless (= emacs-major-version old-version)
|
||||
(user-error (concat "Doom was compiled with Emacs %s, but was loaded with %s. Run 'doom sync' to"
|
||||
"recompile it.")
|
||||
emacs-version old-version)))
|
||||
emacs-major-version old-version)))
|
||||
|
||||
;;; Custom features & global constants
|
||||
;; Doom has its own features that its modules, CLI, and user extensions can
|
||||
|
Reference in New Issue
Block a user