mirror of
https://github.com/doomemacs/doomemacs.git
synced 2026-03-08 15:50:40 -07:00
fix: comp writing temp files to /tmp
Should've been moved to doom-profile-cache-dir, but comp-run-async-workers was renamed to comp--run-async-workers in later versions of Emacs.
This commit is contained in:
parent
c9a50417de
commit
97d33cd641
1 changed files with 2 additions and 0 deletions
|
|
@ -636,6 +636,8 @@ safely cleaned up with 'doom sync' or 'doom gc'."
|
|||
(let ((temporary-file-directory (expand-file-name "comp/" doom-profile-cache-dir)))
|
||||
(make-directory temporary-file-directory t)
|
||||
(apply fn args)))
|
||||
;; This is renamed in newer versions of Emacs.
|
||||
(advice-add #'comp--run-async-workers :around #'comp-run-async-workers@dont-litter-tmpdir)
|
||||
|
||||
(with-eval-after-load 'comp
|
||||
;; HACK: On Emacs 30.0.92, `native-comp-jit-compilation-deny-list' was moved
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue