From bc25807a3853306022b89f0281fbd988acbac3de Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sun, 5 Jul 2015 21:52:25 -0400 Subject: Add sanitizer build to Travis, using debug iterators, ASan and UbSan. Looks good for me locally with GCC 4.9.1 --- src/scripts/ci/build.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/scripts/ci') 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 -- cgit v1.2.3