mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
improve debug
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@32468 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2c414a2539
commit
b40642190b
3 changed files with 13 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2011-03-06 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* gnustep-config.in:
|
||||
* TestFramework/GNUmakefile.in:
|
||||
Add and use --debug-flags optin to gnustep-config ... to get the correct
|
||||
flags to build a file for debugging.
|
||||
|
||||
2011-03-01 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* TestFramework/gnustep-tests.in:
|
||||
|
|
|
@ -120,7 +120,7 @@ then
|
|||
CC=`gnustep-config --variable=CC`
|
||||
export CC
|
||||
fi
|
||||
GSTESTFLAGS=`gnustep-config --objc-flags`
|
||||
GSTESTFLAGS=`gnustep-config --debug-flags`
|
||||
GSTESTFLAGS="$GSTESTFLAGS -I$GSTESTTOP"
|
||||
if test "$GSTESTMODE" = "failfast"
|
||||
then
|
||||
|
|
|
@ -33,6 +33,7 @@ fi
|
|||
case "$1" in
|
||||
--variable=*) ;;
|
||||
--help) ;;
|
||||
--debug-flags) ;;
|
||||
--objc-flags) ;;
|
||||
--objc-libs) ;;
|
||||
--base-libs) ;;
|
||||
|
@ -81,6 +82,8 @@ if [ "$1" = "--help" ]; then
|
|||
echo " For example, you could get the value of GNUSTEP_SYSTEM_TOOLS to find"
|
||||
echo " where command-line system programs are located on this system."
|
||||
echo
|
||||
echo "--debug-flags: prints all the flags required to compile an ObjC file for debug"
|
||||
echo
|
||||
echo "--objc-flags: prints all the flags required to compile an ObjC file"
|
||||
echo
|
||||
echo "--objc-libs: prints all the flags required to link a pure ObjC program (no foundation/gui)"
|
||||
|
@ -158,6 +161,8 @@ case "$1" in
|
|||
exit 0;;
|
||||
--variable=GNUMAKE) echo "@GNUMAKE@"
|
||||
exit 0;;
|
||||
--debug-flags) @GNUMAKE@ -s -f "$GNUSTEP_MAKEFILES/empty.make" print-gnustep-make-objc-flags quiet=yes debug=yes 2>/dev/null
|
||||
exit 0;;
|
||||
--objc-flags) @GNUMAKE@ -s -f "$GNUSTEP_MAKEFILES/empty.make" print-gnustep-make-objc-flags quiet=yes 2>/dev/null
|
||||
exit 0;;
|
||||
--objc-libs) @GNUMAKE@ -s -f "$GNUSTEP_MAKEFILES/empty.make" print-gnustep-make-objc-libs quiet=yes 2>/dev/null
|
||||
|
|
Loading…
Reference in a new issue