]> git.eshelyaron.com Git - emacs.git/commitdiff
Set 'native-comp-debug' to zero on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Sat, 29 Oct 2022 15:59:04 +0000 (18:59 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 29 Oct 2022 15:59:04 +0000 (18:59 +0300)
* lisp/emacs-lisp/comp.el (native-comp-debug): Don't emit debug
symbols on MS-Windows.  The default was originally made 1 because
without that, C backtraces on Windows would not show
natively-compiled functions correctly, or would even stop short of
reaching the topmost call frame.  But that turned out to be due to
a bug in GDB, which was meanwhile fixed in GDB 12.  So we can now
reset the value back to zero, and gain smaller *.eln files on
MS-Windows.

lisp/emacs-lisp/comp.el

index 21395c23d9aa33ed1aabeb127a01425a21eca975..863e895efdb4f2afcf295876049a07e181d12bae 100644 (file)
@@ -57,7 +57,7 @@
   :safe #'integerp
   :version "28.1")
 
-(defcustom native-comp-debug (if (eq 'windows-nt system-type) 1 0)
+(defcustom native-comp-debug  0
   "Debug level for native compilation, a number between 0 and 3.
 This is intended for debugging the compiler itself.
   0 no debug output.
@@ -67,7 +67,7 @@ This is intended for debugging the compiler itself.
   passes and libgccjit log file."
   :type 'natnum
   :safe #'natnump
-  :version "28.1")
+  :version "29.1")
 
 (defcustom native-comp-verbose 0
   "Compiler verbosity for native compilation, a number between 0 and 3.