forked from extern/shorewall_code
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:
parent
75c89dda93
commit
c7c3186b83
@ -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=
|
||||
|
||||
|
@ -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=
|
||||
|
Loading…
Reference in New Issue
Block a user