aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2023-06-22 14:03:17 +0300
committerEli Zaretskii2023-06-22 14:03:17 +0300
commite962cf4ba726943b0f4ea57e1d740742e7618e3a (patch)
tree6d2eff92ae7eb1839ad84900e467d030750acdce /src
parent4ca371e9cc7178572cc25cbe47371c0075405ff7 (diff)
downloademacs-e962cf4ba726943b0f4ea57e1d740742e7618e3a.tar.gz
emacs-e962cf4ba726943b0f4ea57e1d740742e7618e3a.zip
Fix building --with-native-compilation=aot from release tarball
* lisp/Makefile.in (%.eln): Pattern rule for AOT native compilation. (compile-eln-targets, compile-eln-aot): New targets for AOT native compilation. * src/Makefile.in (../native-lisp): If NATIVE_COMPILATION_AOT is set, also native-compile all the other Lisp files. (Bug#64167)
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index c29c3750e59..9bc53c072ea 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -872,6 +872,11 @@ elnlisp := $(addprefix ${lispsource}/,${elnlisp}) $(lisp:.elc=.eln)
872## native-lisp where the *.eln files will be produced, and the exact 872## native-lisp where the *.eln files will be produced, and the exact
873## names of those *.eln files, cannot be known in advance; we must ask 873## names of those *.eln files, cannot be known in advance; we must ask
874## Emacs to produce them. 874## Emacs to produce them.
875## If AOT native compilation is requested, we additionally
876## native-compile all the *.el files in ../lisp that need to be
877## compiled and haven't yet been compiled. ELDONE holds the list
878## of *.el files that were already native-compiled.
879NATIVE_COMPILATION_AOT = @NATIVE_COMPILATION_AOT@
875../native-lisp: | $(pdmp) 880../native-lisp: | $(pdmp)
876 @if test ! -d $@; then \ 881 @if test ! -d $@; then \
877 mkdir $@ && $(MAKE) $(AM_V_NO_PD) $(elnlisp); \ 882 mkdir $@ && $(MAKE) $(AM_V_NO_PD) $(elnlisp); \
@@ -882,6 +887,9 @@ elnlisp := $(addprefix ${lispsource}/,${elnlisp}) $(lisp:.elc=.eln)
882 --bin-dest $(BIN_DESTDIR) --eln-dest $(ELN_DESTDIR) \ 887 --bin-dest $(BIN_DESTDIR) --eln-dest $(ELN_DESTDIR) \
883 && cp -f emacs$(EXEEXT) bootstrap-emacs$(EXEEXT) \ 888 && cp -f emacs$(EXEEXT) bootstrap-emacs$(EXEEXT) \
884 && cp -f $(pdmp) $(bootstrap_pdmp); \ 889 && cp -f $(pdmp) $(bootstrap_pdmp); \
890 if test $(NATIVE_COMPILATION_AOT) = yes; then \
891 $(MAKE) $(AM_V_NO_PD) -C ../lisp compile-eln-aot EMACS="../src/emacs$(EXEEXT)" ELNDONE="$(addprefix %,$(notdir $(elnlisp))))"; \
892 fi; \
885 fi 893 fi
886endif 894endif
887 895