[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/native-comp 88b860e 02/12: Make comp-deferred-compilation a simp
From: |
Andrea Corallo |
Subject: |
feature/native-comp 88b860e 02/12: Make comp-deferred-compilation a simple global and set it on by default |
Date: |
Mon, 17 Aug 2020 13:12:10 -0400 (EDT) |
branch: feature/native-comp
commit 88b860ef6c687b8b1e3f00eb200f7fc1fb4425dd
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>
Make comp-deferred-compilation a simple global and set it on by default
* src/comp.c (comp_deferred_compilation): Doc update and set it to
true by default.
* lisp/emacs-lisp/comp.el (comp-deferred-compilation): Remove
customize.
---
lisp/emacs-lisp/comp.el | 7 -------
src/comp.c | 8 +++++++-
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 30cedf2..5805e5c 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -41,13 +41,6 @@
"Emacs Lisp native compiler."
:group 'lisp)
-(defcustom comp-deferred-compilation nil
- "If non-nil compile asyncronously all .elc files being loaded.
-Once compilation happened each function definition is updated to
-the native compiled one."
- :type 'boolean
- :group 'comp)
-
(defcustom comp-speed 2
"Compiler optimization level. From -1 to 3.
- -1 functions are kept in bytecode form and no native compilation is
performed.
diff --git a/src/comp.c b/src/comp.c
index 9582506..b795afa 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -4901,7 +4901,13 @@ syms_of_comp (void)
#ifdef HAVE_NATIVE_COMP
/* Compiler control customizes. */
DEFVAR_BOOL ("comp-deferred-compilation", comp_deferred_compilation,
- doc: /* If t compile asyncronously every .elc file loaded. */);
+ doc: /* If non-nil compile asyncronously all .elc files
+being loaded.
+
+Once compilation happened each function definition is updated to the
+native compiled one. */);
+ comp_deferred_compilation = true;
+
DEFSYM (Qcomp_speed, "comp-speed");
DEFSYM (Qcomp_debug, "comp-debug");
- 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 <=
- 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, 2020/08/17
- 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