diff options
| author | Andrea Corallo | 2021-03-31 20:13:46 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2021-03-31 20:25:08 +0200 |
| commit | 53ca0d98441da75be49111a3a88c1a7629f27d6d (patch) | |
| tree | d153bd40f539d9fdf3662ecb2183f121be592066 /src/comp.c | |
| parent | 613caa9527ef56fb9b810d2b9478cbe9784baca0 (diff) | |
| download | emacs-53ca0d98441da75be49111a3a88c1a7629f27d6d.tar.gz 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 'src/comp.c')
| -rw-r--r-- | src/comp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp.c b/src/comp.c index b286f6077f3..a87a8f30c35 100644 --- a/src/comp.c +++ b/src/comp.c | |||
| @@ -4431,7 +4431,7 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file, | |||
| 4431 | gcc_jit_context_set_bool_option (comp.ctxt, | 4431 | gcc_jit_context_set_bool_option (comp.ctxt, |
| 4432 | GCC_JIT_BOOL_OPTION_DEBUGINFO, | 4432 | GCC_JIT_BOOL_OPTION_DEBUGINFO, |
| 4433 | 1); | 4433 | 1); |
| 4434 | if (comp.debug > 2) | 4434 | if (comp.debug >= 3) |
| 4435 | { | 4435 | { |
| 4436 | logfile = emacs_fopen ("libgccjit.log", "w"); | 4436 | logfile = emacs_fopen ("libgccjit.log", "w"); |
| 4437 | gcc_jit_context_set_logfile (comp.ctxt, | 4437 | gcc_jit_context_set_logfile (comp.ctxt, |
| @@ -4493,7 +4493,7 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file, | |||
| 4493 | 4493 | ||
| 4494 | add_driver_options (); | 4494 | add_driver_options (); |
| 4495 | 4495 | ||
| 4496 | if (comp.debug) | 4496 | if (comp.debug >= 1) |
| 4497 | gcc_jit_context_dump_to_file (comp.ctxt, | 4497 | gcc_jit_context_dump_to_file (comp.ctxt, |
| 4498 | format_string ("%s.c", SSDATA (ebase_name)), | 4498 | format_string ("%s.c", SSDATA (ebase_name)), |
| 4499 | 1); | 4499 | 1); |