mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
- Enabled "configure --enable-debug" to suppress optimization, therefore
allowing debugging without the debugger showing the unoptimized source while stepping through optimized code.
This commit is contained in:
parent
aafcba436e
commit
6d5309527c
5 changed files with 29 additions and 2 deletions
|
@ -9,6 +9,8 @@
|
||||||
easier comparison by month of tasks added versus completed and deleted.
|
easier comparison by month of tasks added versus completed and deleted.
|
||||||
+ "task version" command now reports unrecognized configuration variables,
|
+ "task version" command now reports unrecognized configuration variables,
|
||||||
which may be spelling mistakes or deprecated variables.
|
which may be spelling mistakes or deprecated variables.
|
||||||
|
+ "configure --enable-debug" now supported to suppress compiler optimization
|
||||||
|
to allow debugging.
|
||||||
|
|
||||||
------ old releases ------------------------------
|
------ old releases ------------------------------
|
||||||
|
|
||||||
|
|
25
configure.ac
25
configure.ac
|
@ -3,6 +3,29 @@
|
||||||
|
|
||||||
AC_PREREQ(2.61)
|
AC_PREREQ(2.61)
|
||||||
AC_INIT(task, 1.5.0, bugs@beckingham.net)
|
AC_INIT(task, 1.5.0, bugs@beckingham.net)
|
||||||
|
|
||||||
|
|
||||||
|
CFLAGS="${CFLAGS=}"
|
||||||
|
CXXFLAGS="${CXXFLAGS=}"
|
||||||
|
# this macro is used to get the arguments supplied
|
||||||
|
# to the configure script (./configure --enable-debug)
|
||||||
|
# Check if we have enable debug support.
|
||||||
|
AC_MSG_CHECKING(whether to enable debugging)
|
||||||
|
debug_default="yes"
|
||||||
|
AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging
|
||||||
|
[default=$debug_default]],, enable_debug=$debug_default)
|
||||||
|
# Yes, shell scripts can be used
|
||||||
|
if test "x$enable_debug" = "xyes"; then
|
||||||
|
CFLAGS="$CFLAGS -Wall -pedantic -ggdb3 -DDEBUG"
|
||||||
|
CXXFLAGS="$CFLAGS -Wall -pedantic -ggdb3 -DDEBUG"
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
else
|
||||||
|
CFLAGS="$CFLAGS -O3"
|
||||||
|
CXXFLAGS="$CFLAGS -O3"
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
AC_CONFIG_SRCDIR([src/task.cpp])
|
AC_CONFIG_SRCDIR([src/task.cpp])
|
||||||
AC_CONFIG_HEADER([auto.h])
|
AC_CONFIG_HEADER([auto.h])
|
||||||
|
@ -12,6 +35,8 @@ AC_PROG_CXX
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_LANG(C++)
|
AC_LANG(C++)
|
||||||
|
|
||||||
|
AC_SUBST(CFLAGS)
|
||||||
|
|
||||||
# Checks for libraries.
|
# Checks for libraries.
|
||||||
AC_CHECK_LIB(ncurses,initscr)
|
AC_CHECK_LIB(ncurses,initscr)
|
||||||
AC_CHECK_LIB(ncurses,endwin)
|
AC_CHECK_LIB(ncurses,endwin)
|
||||||
|
|
|
@ -102,6 +102,8 @@
|
||||||
easier comparison by month of tasks added versus completed and deleted.
|
easier comparison by month of tasks added versus completed and deleted.
|
||||||
<li>"task version" command now reports unrecognized configuration variables,
|
<li>"task version" command now reports unrecognized configuration variables,
|
||||||
which may be spelling mistakes or deprecated variables.
|
which may be spelling mistakes or deprecated variables.
|
||||||
|
<li>"configure --enable-debug" now supported to suppress compiler optimization
|
||||||
|
to allow debugging.
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
bin_PROGRAMS = task
|
bin_PROGRAMS = task
|
||||||
task_SOURCES = Config.cpp Date.cpp T.cpp TDB.cpp Table.cpp Grid.cpp color.cpp parse.cpp task.cpp command.cpp report.cpp util.cpp text.cpp rules.cpp Config.h Date.h T.h TDB.h Table.h Grid.h color.h task.h
|
task_SOURCES = Config.cpp Date.cpp T.cpp TDB.cpp Table.cpp Grid.cpp color.cpp parse.cpp task.cpp command.cpp report.cpp util.cpp text.cpp rules.cpp Config.h Date.h T.h TDB.h Table.h Grid.h color.h task.h
|
||||||
AM_CPPFLAGS = -Wall -pedantic -ggdb3 -fno-rtti
|
|
||||||
|
|
|
@ -155,7 +155,6 @@ target_alias = @target_alias@
|
||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
task_SOURCES = Config.cpp Date.cpp T.cpp TDB.cpp Table.cpp Grid.cpp color.cpp parse.cpp task.cpp command.cpp report.cpp util.cpp text.cpp rules.cpp Config.h Date.h T.h TDB.h Table.h Grid.h color.h task.h
|
task_SOURCES = Config.cpp Date.cpp T.cpp TDB.cpp Table.cpp Grid.cpp color.cpp parse.cpp task.cpp command.cpp report.cpp util.cpp text.cpp rules.cpp Config.h Date.h T.h TDB.h Table.h Grid.h color.h task.h
|
||||||
AM_CPPFLAGS = -Wall -pedantic -ggdb3 -fno-rtti
|
|
||||||
all: all-am
|
all: all-am
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue