diff options
author | John Turner <jturner.usa@gmail.com> | 2023-03-25 03:28:06 -0400 |
---|---|---|
committer | John Turner <jturner.usa@gmail.com> | 2023-03-26 00:20:56 -0400 |
commit | 858ed5a8e768c5b456369dcda4603ab21f969222 (patch) | |
tree | 4c51dceefae7b64c69f9262bae5e5e64d8e2e6e5 /init | |
parent | 0487a351477b5fca13461977a008bc2b3e15098d (diff) | |
download | emacs.d-858ed5a8e768c5b456369dcda4603ab21f969222.tar.gz |
use early-init.el to allow setting native comp cache dir
Some of the init.el setup code moved to early-init.el to allow loading
our init modules in early init.
Loading the native comp init module in init.el set the cache directory variable
too late and resulted in the original directory still being populated
with eln files.
Diffstat (limited to 'init')
-rw-r--r-- | init/native-comp/init-native-comp.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/init/native-comp/init-native-comp.el b/init/native-comp/init-native-comp.el index 9ae0489..630a083 100644 --- a/init/native-comp/init-native-comp.el +++ b/init/native-comp/init-native-comp.el @@ -1,3 +1,4 @@ -(setq native-comp-async-jobs-number (string-to-number (shell-command-to-string "nproc"))) +(setq native-comp-async-jobs-number (string-to-number (shell-command-to-string "nproc")) + native-compile-target-directory temporary-file-directory) (provide 'init-native-comp) |