summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2020-12-11 07:48:41 +0000
committerReuben Thomas <rrt@sc3d.org>2020-12-22 13:58:11 +0000
commitb09ccf57763280c5ad747d8223908e9a55fc05d6 (patch)
tree7fab213331bc23bc3883201fceb94ab9f31a13a0
parentdc708004ad23313f9cfa989239c2a163808a4197 (diff)
downloadenchant-b09ccf57763280c5ad747d8223908e9a55fc05d6.tar.gz
AppVeyor: make ASAN build actually build with ASAN
Also add ASAN flags to CXXFLAGS
-rw-r--r--.appveyor.yml3
-rwxr-xr-xbuild-aux/appveyor-build.sh4
2 files changed, 4 insertions, 3 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index e09fe5c..571fbf2 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -7,8 +7,8 @@ environment:
VERBOSE: 1 # Get test logs in output
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
- - APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
ASAN: 'yes'
+ - APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
- APPVEYOR_BUILD_WORKER_IMAGE: macos
# MSYS does not have hunspell packages
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
@@ -27,6 +27,7 @@ for:
- sudo add-apt-repository -y ppa:nuspell/ppa
- sudo apt-get -y install libglib2.0-dev libaspell-dev hspell libhunspell-dev libvoikko-dev voikko-fi aspell-en libunittest++-dev hunspell-fr libnuspell-dev
build_script:
+ - export ASAN
- ./build-aux/appveyor-build.sh
-
matrix:
diff --git a/build-aux/appveyor-build.sh b/build-aux/appveyor-build.sh
index 6472d91..db42400 100755
--- a/build-aux/appveyor-build.sh
+++ b/build-aux/appveyor-build.sh
@@ -8,9 +8,9 @@ set -e
./bootstrap
CONFIGURE_ARGS=(--enable-relocatable --with-zemberek=check)
if [[ "$ASAN" == "yes" ]]; then
- CONFIGURE_ARGS+=(CFLAGS="-g3 -fsanitize=address -fsanitize=undefined" LDFLAGS="-fsanitize=address -fsanitize=undefined")
+ CONFIGURE_ARGS+=(CFLAGS="-g3 -fsanitize=address -fsanitize=undefined" CXXFLAGS="-g3 -fsanitize=address -fsanitize=undefined" LDFLAGS="-fsanitize=address -fsanitize=undefined")
fi
-./configure --enable-silent-rules "${CONFIGURE_ARGS[@]}"
+./configure "${CONFIGURE_ARGS[@]}"
make
make distcheck