aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-07-05 22:16:29 -0400
committerJack Lloyd <[email protected]>2015-07-05 22:16:29 -0400
commit8db5746d4c83d9ef8e02aeee5092950ab9407604 (patch)
tree533516b947288511d4a8bb1b47aa4e813022d8d7 /src
parentd84516a2b77c8754344d54fcd067e57c156eb4ac (diff)
Make sanitizer a build mode for easy use by developers.
Diffstat (limited to 'src')
-rw-r--r--src/build-data/cc/gcc.txt1
-rwxr-xr-xsrc/scripts/ci/build.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/build-data/cc/gcc.txt b/src/build-data/cc/gcc.txt
index 1e1eb2fb9..ee9d35317 100644
--- a/src/build-data/cc/gcc.txt
+++ b/src/build-data/cc/gcc.txt
@@ -17,6 +17,7 @@ app_opt_flags "-O2"
shared_flags "-fPIC"
debug_flags "-g"
coverage_flags "--coverage"
+sanitizer_flags "-D_GLIBCXX_DEBUG -fsanitize=address -fsanitize=undefined"
visibility_build_flags "-fvisibility=hidden"
visibility_attribute '__attribute__((visibility("default")))'
diff --git a/src/scripts/ci/build.sh b/src/scripts/ci/build.sh
index 2f8f00350..c87033f68 100755
--- a/src/scripts/ci/build.sh
+++ b/src/scripts/ci/build.sh
@@ -10,7 +10,7 @@ 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'"
+ CFG_FLAGS="--build-mode=sanitizer"
fi
$CXX --version