From 14c93208cbdda1abf2d6d44c9d6df6eb390fe853 Mon Sep 17 00:00:00 2001 From: Mats Lidell Date: Sat, 21 Mar 2026 13:12:30 +0100 Subject: [PATCH] Put native compiled files in user-emacs-directory/eln-cache * Makefile (HYPB_BYTE_COMP_ELN_LOAD_PATH): Add users eln-cache last in native-comp-eln-load-path so that batch-byte+native-compile uses that for storing the en-files. (%.elc): Use HYPB_BYTE_COMP_ELN_LOAD_PATH. --- ChangeLog | 7 +++++++ Makefile | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 07ed892c..d1136951 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2026-03-21 Mats Lidell + +* Makefile (HYPB_BYTE_COMP_ELN_LOAD_PATH): Add users eln-cache last in + native-comp-eln-load-path so that batch-byte+native-compile uses that + for storing the en-files. + (%.elc): Use HYPB_BYTE_COMP_ELN_LOAD_PATH. + 2026-03-18 Mats Lidell * hactypes.el (link-to-org-id): Fix quote in docstring. diff --git a/Makefile b/Makefile index b5865a7a..323c3dca 100644 --- a/Makefile +++ b/Makefile @@ -357,12 +357,16 @@ curr_dir = $(shell pwd) ifeq ($(HYPB_NATIVE_COMP),yes) HYPB_BYTE_COMP_INFO = $(HYPB_ELC_ELN) HYPB_BYTE_COMP_FUNC = batch-byte+native-compile +HYPB_BYTE_COMP_ELN_LOAD_PATH = --eval "(add-to-list \ + 'native-comp-eln-load-path (expand-file-name \"eln-cache\" \ + user-emacs-directory) t))" else HYPB_BYTE_COMP_INFO = $(HYPB_ELC) HYPB_BYTE_COMP_FUNC = batch-byte-compile endif %.elc: %.el $(HYPB_BYTE_COMP_INFO)$(EMACS) --batch --quick \ + $(HYPB_BYTE_COMP_ELN_LOAD_PATH) \ --eval "(progn (add-to-list 'load-path \"$(curr_dir)\") (add-to-list 'load-path \"$(curr_dir)/kotl\"))" \ -l bytecomp ${HYPB_BIN_WARN} \ -f $(HYPB_BYTE_COMP_FUNC) $<