mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-19 17:28:35 +02:00
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'
|
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=
|
NOLOCK=
|
||||||
|
|
||||||
|
@ -365,6 +365,14 @@ compile_command() {
|
|||||||
EXPORT=Yes
|
EXPORT=Yes
|
||||||
option=${option#e}
|
option=${option#e}
|
||||||
;;
|
;;
|
||||||
|
p*)
|
||||||
|
export PROFILE=Yes
|
||||||
|
option=${option#p}
|
||||||
|
;;
|
||||||
|
d*)
|
||||||
|
export DEBUG=Yes;
|
||||||
|
option=${option#d}
|
||||||
|
;;
|
||||||
-)
|
-)
|
||||||
finished=1
|
finished=1
|
||||||
option=
|
option=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user