aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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