mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -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
|
;; 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
|
;; packages (including Doom), bake in absolute paths into their caches that need
|
||||||
;; to be refreshed.
|
;; to be refreshed.
|
||||||
(let ((old-version (eval-when-compile emacs-version)))
|
(let ((old-version (eval-when-compile emacs-major-version)))
|
||||||
(unless (equal emacs-version old-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"
|
(user-error (concat "Doom was compiled with Emacs %s, but was loaded with %s. Run 'doom sync' to"
|
||||||
"recompile it.")
|
"recompile it.")
|
||||||
emacs-version old-version)))
|
emacs-major-version old-version)))
|
||||||
|
|
||||||
;;; Custom features & global constants
|
;;; Custom features & global constants
|
||||||
;; Doom has its own features that its modules, CLI, and user extensions can
|
;; Doom has its own features that its modules, CLI, and user extensions can
|
||||||
|
Reference in New Issue
Block a user