build: add sanitizer option to configure script
Type: improvement Change-Id: Ia679d6e5fb7eff6dbd7363465e5667119751e908 Signed-off-by: Benoît Ganne <bganne@cisco.com>
This commit is contained in:

committed by
Damjan Marion

parent
ff2fba7264
commit
634873c3ee
10
configure
vendored
10
configure
vendored
@ -30,6 +30,7 @@ OPTIONS:
|
||||
--build-type, -t Build type (release, debug, ...)
|
||||
--native-only, -n Only compile for Native CPU (no multiarch)
|
||||
--wipe, -w Wipe whole repo (except startup.* files)
|
||||
--sanitize, -s Enable sanitizer (mem)
|
||||
__EOF__
|
||||
}
|
||||
|
||||
@ -83,6 +84,15 @@ while (( "$#" )); do
|
||||
wipe=yes
|
||||
shift 1
|
||||
;;
|
||||
-s|--sanitize)
|
||||
shift 1
|
||||
case "$1" in
|
||||
mem)
|
||||
shift 1
|
||||
args+=("-DVPP_ENABLE_SANITIZE_ADDR=ON")
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
-*|--*=) # unsupported flags
|
||||
echo "Error: Unsupported flag $1" >&2
|
||||
exit 1
|
||||
|
Reference in New Issue
Block a user