Given load loads automatically a .eln in place of a .elc we need a way
to force the .elc load in the case we really want it.
* src/lread.c (syms_of_lread): Define `load-no-native'.
(maybe_swap_for_eln): Make use of.
#ifdef HAVE_NATIVE_COMP
struct stat eln_st;
- if (!suffix_p (*filename, ".elc"))
+ if (load_no_native
+ || !suffix_p (*filename, ".elc"))
return;
/* Search eln in the eln-cache directories. */
that are loaded before your customizations are read! */);
load_prefer_newer = 0;
+ DEFVAR_BOOL ("load-no-native", load_no_native,
+ doc: /* Do not try to load the a .eln file in place of
+ a .elc one. */);
+ load_no_native = false;
+
/* Vsource_directory was initialized in init_lread. */
DEFSYM (Qcurrent_load_list, "current-load-list");