Fix ‘make compile-always’ with native compilation

Without the fix, ‘make compile-always’ failed nearly immediately
in a native compilation build, with ‘ELC+ELN
emacs-lisp/loaddefs-gen.elc’ outputting “Error: file-missing
("Cannot open load file" "No such file or directory" "comp")...”.
* lisp/Makefile.in (compile-always):
Build ../src first, since the ‘find ... -delete’ removes files
needed by ‘make compile’.
This commit is contained in:
Paul Eggert 2025-12-18 22:17:13 -08:00
parent f6f85dd3be
commit 5e6df127a9

View file

@ -428,6 +428,7 @@ compile: autoloads compile-first
# set the local variable no-byte-compile.
compile-always:
find $(lisp) -name '*.elc' $(FIND_DELETE)
$(MAKE) -C ../src
$(MAKE) compile
.PHONY: trampolines