summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/comp.el
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2021-03-31 20:13:46 +0200
committerAndrea Corallo <akrl@sdf.org>2021-03-31 20:25:08 +0200
commit53ca0d98441da75be49111a3a88c1a7629f27d6d (patch)
treed153bd40f539d9fdf3662ecb2183f121be592066 /lisp/emacs-lisp/comp.el
parent613caa9527ef56fb9b810d2b9478cbe9784baca0 (diff)
downloademacs-53ca0d98441da75be49111a3a88c1a7629f27d6d.tar.gz
emacs-53ca0d98441da75be49111a3a88c1a7629f27d6d.tar.bz2
emacs-53ca0d98441da75be49111a3a88c1a7629f27d6d.zip
Rework native compilation `comp-debug' (bug#46495)
* lisp/emacs-lisp/comp.el (comp-debug): Update docstring and move default on Windows systems from 0 to 1. * src/comp.c (Fcomp__compile_ctxt_to_file): Tweak debug levels.
Diffstat (limited to 'lisp/emacs-lisp/comp.el')
-rw-r--r--lisp/emacs-lisp/comp.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 2f9738a7e20..59e9dbc0138 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -56,14 +56,14 @@
:safe #'integerp
:version "28.1")
-(defcustom comp-debug 0
+(defcustom comp-debug (if (eq 'windows-nt system-type) 1 0)
"Debug level for native compilation, a number between 0 and 3.
This is intended for debugging the compiler itself.
- 0 no debugging output.
- This is the recommended value unless you are debugging the compiler itself.
- 1 emit debug symbols and dump pseudo C code.
- 2 dump gcc passes.
- 3 dump libgccjit log file."
+ 0 no debug output.
+ 1 emit debug symbols.
+ 2 emit debug symbols and dump pseudo C code.
+ 3 emit debug symbols and dump: pseudo C code, GCC intermediate
+ passes and libgccjit log file."
:type 'integer
:safe #'natnump
:version "28.1")