[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/native-comp 142cfe9 10/12: * Introduce `load-no-native'
From: |
Andrea Corallo |
Subject: |
feature/native-comp 142cfe9 10/12: * Introduce `load-no-native' |
Date: |
Mon, 17 Aug 2020 13:12:12 -0400 (EDT) |
branch: feature/native-comp
commit 142cfe942f9263efd6adab5f51f2feab4740735f
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>
* Introduce `load-no-native'
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.
---
src/lread.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/lread.c b/src/lread.c
index c5bec06..521da4e 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1615,7 +1615,8 @@ maybe_swap_for_eln (Lisp_Object *filename, int *fd,
struct timespec mtime)
#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. */
@@ -5156,6 +5157,11 @@ Note that if you customize this, obviously it will not
affect files
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");
- feature/native-comp updated (f2e6168 -> 76faab2), Andrea Corallo, 2020/08/17
- feature/native-comp 88b860e 02/12: Make comp-deferred-compilation a simple global and set it on by default, Andrea Corallo, 2020/08/17
- feature/native-comp df774c4 04/12: * Prevent recursive load, Andrea Corallo, 2020/08/17
- feature/native-comp 3224a44 01/12: Move eln files into dedicated cache directories, Andrea Corallo, 2020/08/17
- feature/native-comp 377ffdb 05/12: * Do not fail if more then one level of directories has to be created, Andrea Corallo, 2020/08/17
- feature/native-comp b6238d8 06/12: * Deferred compilation must always compile despite source file timestamp, Andrea Corallo, 2020/08/17
- feature/native-comp 40de063 09/12: * Remove a false permission related error while native compiling, Andrea Corallo, 2020/08/17
- feature/native-comp dbeafd3 03/12: Some Makefile updates and clean-up, Andrea Corallo, 2020/08/17
- feature/native-comp 171db31 07/12: Make install target functional for new eln-cache directory arrangement, Andrea Corallo, 2020/08/17
- feature/native-comp da54406 08/12: Allow for native compiling .el.gz files, Andrea Corallo, 2020/08/17
- feature/native-comp 142cfe9 10/12: * Introduce `load-no-native',
Andrea Corallo <=
- feature/native-comp 114b1d8 11/12: * test/src/comp-tests.el (comp-tests-bootstrap): Fix test for new eln setup., Andrea Corallo, 2020/08/17
- feature/native-comp 76faab2 12/12: * Improve eln filename hashing, Andrea Corallo, 2020/08/17