texlive[73438] Build/source: --debug-more option
commits+karl at tug.org
commits+karl at tug.org
Sun Jan 12 22:07:14 CET 2025
Revision: 73438
https://tug.org/svn/texlive?view=revision&revision=73438
Author: karl
Date: 2025-01-12 22:07:14 +0100 (Sun, 12 Jan 2025)
Log Message:
-----------
--debug-more option
Modified Paths:
--------------
trunk/Build/source/Build
trunk/Build/source/ChangeLog
Modified: trunk/Build/source/Build
===================================================================
--- trunk/Build/source/Build 2025-01-12 21:03:58 UTC (rev 73437)
+++ trunk/Build/source/Build 2025-01-12 21:07:14 UTC (rev 73438)
@@ -62,7 +62,8 @@
# allow adding environment setting for build.
: ${TL_BUILD_ENV=}; export TL_BUILD_ENV
-if test "x$1" = x--debug || test "x$1" = x-g; then
+if echo "$1" | grep '^--debug' >/dev/null || test "x$1" = x-g; then
+ debug_option=$1
shift
# The idea is that with Build -g, you can set TL_COMPILER_GFLAGS in
# the environment with options common to all compilers --
@@ -69,7 +70,19 @@
# not necessarily anything to do with debugging, e.g., -mcpu=sparvc9.
# Or you can set TL_{C,CXX,OBJCXX}FLAGS for per-language flags,
# notably TL_CFLAGS=-Wdeclaration-after-statement.
- : ${TL_COMPILER_GFLAGS=-g}; export TL_COMPILER_CFLAGS
+ #
+ # See https://tug.org/texlive/build.html for some discussion.
+ #
+ if test "x$debug_option" = x--debug || test "x$debug_option" = x-g; then
+ : ${TL_COMPILER_GFLAGS=-g}
+ elif test "x$debug_option" = x--debug-more; then
+ : ${TL_COMPILER_GFLAGS=-g -Og -ggdb3}
+ else
+ echo "$0: unknown debugging option: $debug_option" >&2
+ exit 1
+ fi
+ export TL_COMPILER_CFLAGS
+ #
c="CFLAGS='$TL_COMPILER_GFLAGS $TL_CFLAGS'"
cxx="CXXFLAGS='$TL_COMPILER_GFLAGS $TL_CXXFLAGS'"
objcxx="OBJCXXFLAGS='$TL_COMPILER_GFLAGS $TL_OBJCXXFLAGS'" # only for macs
Modified: trunk/Build/source/ChangeLog
===================================================================
--- trunk/Build/source/ChangeLog 2025-01-12 21:03:58 UTC (rev 73437)
+++ trunk/Build/source/ChangeLog 2025-01-12 21:07:14 UTC (rev 73438)
@@ -1,3 +1,8 @@
+2025-01-12 Karl Berry <karl at tug.org>
+
+ * Build: also support --debug-more for -g -Og -ggdb3,
+ per Luigi, as described on https://tug.org/texlive/build.html.
+
2024-07-12 Karl Berry <karl at freefriends.org>
* reautoconf with automake 1.17.
More information about the tex-live-commits
mailing list.