From 858ed5a8e768c5b456369dcda4603ab21f969222 Mon Sep 17 00:00:00 2001 From: John Turner Date: Sat, 25 Mar 2023 03:28:06 -0400 Subject: 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. --- init/native-comp/init-native-comp.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'init/native-comp/init-native-comp.el') 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) -- cgit v1.2.3