summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2024-07-06 13:54:01 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2024-07-06 13:54:01 +0200
commit3b7382a65fb079635e71414077e13e33633f036f (patch)
treec1b414015cdbfdf2a8ed00fbf67b886ce1ef647f
parent50e372e411cf41860894e31c13bb4bbb0fe1d3d2 (diff)
downloaddotfiles-3b7382a65fb079635e71414077e13e33633f036f.tar.xz
Add knob to configure Emacs for debugging
As per etc/DEBUG.
-rwxr-xr-x.local/bin/emacs-build9
1 files changed, 9 insertions, 0 deletions
diff --git a/.local/bin/emacs-build b/.local/bin/emacs-build
index 5ec38e1..280913f 100755
--- a/.local/bin/emacs-build
+++ b/.local/bin/emacs-build
@@ -45,6 +45,15 @@ then
)
fi
+if test "${DEBUG:-}"
+then
+ configure_flags+=(
+ --enable-checking=yes,glyphs
+ --enable-check-lisp-object-type
+ CFLAGS='-O0 -g3'
+ )
+fi
+
if ! test -f "${src}"/Makefile
then
${make} -C "${src}" configure