diff options
author | Jack Lloyd <[email protected]> | 2015-07-05 21:52:25 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2015-07-05 21:52:25 -0400 |
commit | bc25807a3853306022b89f0281fbd988acbac3de (patch) | |
tree | 96c394f163702310455027d3647bfe9904d33842 /src/scripts | |
parent | e27b169d4cebfc9c80e3b9cd273cb355969a877e (diff) |
Add sanitizer build to Travis, using debug iterators, ASan and UbSan.
Looks good for me locally with GCC 4.9.1
Diffstat (limited to 'src/scripts')
-rwxr-xr-x | src/scripts/ci/build.sh | 2 |
1 files changed, 2 insertions, 0 deletions
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 |