To Ahead of Time compile the whole Emacs distro define NATIVE_FULL_AOT
when invoking make ex: 'make NATIVE_FULL_AOT=1'.
* lisp/Makefile.in (NATIVE_SKIP_NONDUMP): New variable.
(compile-main): Use it + rename NATIVE_DISABLE -> NATIVE_DISABLED.
* lisp/emacs-lisp/comp.el
(batch-byte-native-compile-for-bootstrap): Rename NATIVE_DISABLE
-> NATIVE_DISABLED.
am__v_ELC_ = $(am__v_ELC_@AM_DEFAULT_V@)
ifeq ($(HAVE_NATIVE_COMP),yes)
am__v_ELC_0 = @echo " ELC+ELN " $@;
+ifndef NATIVE_FULL_AOT
+NATIVE_SKIP_NONDUMP = 1
+endif
else
am__v_ELC_0 = @echo " ELC " $@;
endif
done | xargs $(XARGS_LIMIT) echo) | \
while read chunk; do \
$(MAKE) compile-targets \
- NATIVE_DISABLE=$(NATIVE_FAST_BOOT) \
+ NATIVE_DISABLED=$(NATIVE_SKIP_NONDUMP) \
TARGETS="$$chunk"; \
done
"As `batch-byte-compile' but used for booststrap.
Always generate elc files too and handle native compiler expected errors."
(comp-ensure-native-compiler)
- (if (equal (getenv "NATIVE_DISABLE") "1")
+ (if (equal (getenv "NATIVE_DISABLED") "1")
(batch-byte-compile)
(cl-assert (= 1 (length command-line-args-left)))
(let ((byte-native-for-bootstrap t)