aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.travis.yml2
-rwxr-xr-xsrc/scripts/ci/build.sh2
2 files changed, 4 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 35f374658..567b1d052 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,6 +13,7 @@ env:
- BUILD_MODE="shared"
- BUILD_MODE="static"
- BUILD_MODE="coverage"
+ - BUILD_MODE="sanitizer"
matrix:
exclude:
@@ -20,6 +21,7 @@ matrix:
compiler: gcc
- compiler: clang
env: BUILD_MODE="coverage"
+ env: BUILD_MODE="sanitizer"
sudo: required
diff --git a/src/scripts/ci/build.sh b/src/scripts/ci/build.sh
index 2d75a3901..2f8f00350 100755
--- a/src/scripts/ci/build.sh
+++ b/src/scripts/ci/build.sh
@@ -9,6 +9,8 @@ elif [ "$BUILD_MODE" = "shared" ]; then
elif [ "$BUILD_MODE" = "coverage" ]; then
# lcov gets confused by symlinks
CFG_FLAGS="--build-mode=coverage --link-method=copy"
+elif [ "$BUILD_MODE" = "sanitizer" ]; then
+ CFG_FLAGS="--cc-abi-flags='-D_GLIBCXX_DEBUG -fsanitize=address -fsanitize=undefined'"
fi
$CXX --version