Add -p and -d compiler options so that we can profile and debug the compiler

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5612 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-03-21 19:08:52 +00:00
parent 75c89dda93
commit c7c3186b83
2 changed files with 15 additions and 1 deletions

View File

@ -5660,7 +5660,13 @@ usage() {
#
debug='-w'
[ $# -gt 1 ] && [ "$1" = "debug" ] && { set -x ; debug='-wd' ; shift ; }
[ $# -gt 1 ] && [ "$1" = "debug" ] && { set -x ; shift ; }
if [ "$PROFILE" ]; then
debug='-wd:DProf'
elif [ "$DEBUG" ]; then
debug='-wd'
fi
NOLOCK=

View File

@ -365,6 +365,14 @@ compile_command() {
EXPORT=Yes
option=${option#e}
;;
p*)
export PROFILE=Yes
option=${option#p}
;;
d*)
export DEBUG=Yes;
option=${option#d}
;;
-)
finished=1
option=