summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-06-18 21:24:52 +0300
committerAndrei Karas <akaras@inbox.ru>2018-06-18 21:24:52 +0300
commitc29faaccaab1f4e662b176b4d5ab9fda8d8546a5 (patch)
tree727439b0e03da6f4b5ce11b2cf4c80c9e5a3bc11 /build
parent8950be6472a83942964e7f50be23381bf47cc4f3 (diff)
downloadmanaplus-c29faaccaab1f4e662b176b4d5ab9fda8d8546a5.tar.gz
manaplus-c29faaccaab1f4e662b176b4d5ab9fda8d8546a5.tar.bz2
manaplus-c29faaccaab1f4e662b176b4d5ab9fda8d8546a5.tar.xz
manaplus-c29faaccaab1f4e662b176b4d5ab9fda8d8546a5.zip
Add flag -D_GLIBCXX_SANITIZE_VECTOR into asan builds.
Diffstat (limited to 'build')
-rwxr-xr-xbuild/bmakedebug2
-rwxr-xr-xbuild/bmakedebugsdl22
2 files changed, 2 insertions, 2 deletions
diff --git a/build/bmakedebug b/build/bmakedebug
index a47c160e0..885d41a08 100755
--- a/build/bmakedebug
+++ b/build/bmakedebug
@@ -11,7 +11,7 @@ export CXX="ccache g++"
export LANG=C
export CXXFLAGS="-pedantic -ggdb3 -O3 -pipe -ffast-math \
--D_FORTIFY_SOURCE=2 \
+-D_FORTIFY_SOURCE=2 -D_GLIBCXX_SANITIZE_VECTOR \
-fno-omit-frame-pointer \
-fsanitize=address -fsanitize=undefined \
-fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=unreachable \
diff --git a/build/bmakedebugsdl2 b/build/bmakedebugsdl2
index 9fbe624a1..66f304e87 100755
--- a/build/bmakedebugsdl2
+++ b/build/bmakedebugsdl2
@@ -11,7 +11,7 @@ export CXX="ccache g++"
export LANG=C
export CXXFLAGS="-pedantic -ggdb3 -O3 -pipe -ffast-math \
--D_FORTIFY_SOURCE=2 \
+-D_FORTIFY_SOURCE=2 -D_GLIBCXX_SANITIZE_VECTOR \
-fno-omit-frame-pointer \
-fsanitize=address -fsanitize=undefined \
-fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=unreachable \