[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/native-comp-eln-caches 0266246 2/6: Make comp-deferred-compilati
From: |
Andrea Corallo |
Subject: |
scratch/native-comp-eln-caches 0266246 2/6: Make comp-deferred-compilation a simple global and set it on by default |
Date: |
Sat, 15 Aug 2020 14:57:19 -0400 (EDT) |
branch: scratch/native-comp-eln-caches
commit 0266246bb5f37b95fe578f500b920be3dced2680
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");
- branch scratch/native-comp-eln-caches created (now 19a9ecf), Andrea Corallo, 2020/08/15
- scratch/native-comp-eln-caches 0a824d8 1/6: Move eln files into dedicated cache directories, Andrea Corallo, 2020/08/15
- scratch/native-comp-eln-caches 0266246 2/6: Make comp-deferred-compilation a simple global and set it on by default,
Andrea Corallo <=
- scratch/native-comp-eln-caches f319c09 4/6: * Prevent recursive load, Andrea Corallo, 2020/08/15
- scratch/native-comp-eln-caches ade825b 5/6: * Do not fail if more then one level of directories has to be created, Andrea Corallo, 2020/08/15
- scratch/native-comp-eln-caches d0f67ec 3/6: Some Makefile updates and clean-up, Andrea Corallo, 2020/08/15
- scratch/native-comp-eln-caches 19a9ecf 6/6: * Deferred compilation must always compile despite source file timestamp, Andrea Corallo, 2020/08/15