Fix #4172: different build path per Emacs version

To prevent byte-code incompatibilities.

We'll need to make 'doom purge' smarter about purging builds for other
versions of Emacs.
This commit is contained in:
Henrik Lissner 2020-10-28 05:13:04 -04:00
parent 471028ce94
commit d784509abf
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -79,6 +79,10 @@ uses a straight or package.el command directly).")
(setq straight-base-dir doom-local-dir (setq straight-base-dir doom-local-dir
straight-repository-branch "develop" straight-repository-branch "develop"
;; Since byte-code is rarely compatible across different versions of
;; Emacs, it's best we build them in separate directories, per emacs
;; version.
straight-build-dir (format "build-%s" emacs-version)
straight-cache-autoloads nil ; we already do this, and better. straight-cache-autoloads nil ; we already do this, and better.
;; Doom doesn't encourage you to modify packages in place. Disabling this ;; Doom doesn't encourage you to modify packages in place. Disabling this
;; makes 'doom sync' instant (once everything set up), which is much nicer ;; makes 'doom sync' instant (once everything set up), which is much nicer