ci: build ndn-cxx with AddressSanitizer
Change-Id: I706ab29efe61c17511b87b477151d9a2a8e055bc
diff --git a/.jenkins.d/10-build.sh b/.jenkins.d/10-build.sh
index f5ef90a..2a60f0d 100755
--- a/.jenkins.d/10-build.sh
+++ b/.jenkins.d/10-build.sh
@@ -4,10 +4,11 @@
git submodule sync
git submodule update --init
+if [[ -z $DISABLE_ASAN ]]; then
+ ASAN="--with-sanitizer=address"
+fi
if [[ $JOB_NAME == *"code-coverage" ]]; then
COVERAGE="--with-coverage"
-elif [[ -z $DISABLE_ASAN ]]; then
- ASAN="--with-sanitizer=address"
fi
if [[ $JOB_NAME != *"code-coverage" && $JOB_NAME != *"limited-build" ]]; then