From 4edcafa14d8e25233667639e9b073854256d3a0f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ra=C3=BAl=20Mar=C3=ADn=20Rodr=C3=ADguez?= Date: Thu, 22 Nov 2018 15:19:44 +0000 Subject: [PATCH] Travis: Run CI under clang's ubsan References #4244 Closes https://github.com/postgis/postgis/pull/337 git-svn-id: http://svn.osgeo.org/postgis/trunk@17054 b70326c6-7e19-0410-871a-916f4a2858ee --- .travis.yml | 1 + ci/travis/run_usan_gcc.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 97761f5e8..3b2e19992 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ env: - tag=pg11-geos37-gdal23-proj52 mode=debug - tag=pg11-geos37-gdal23-proj52 mode=coverage - tag=pg11-geos37-gdal23-proj52 mode=usan_gcc + - tag=pg11-geos37-gdal23-proj52 mode=usan_clang - tag=pg11-geos37-gdal23-proj52 mode=tests - tag=pg10-geos36-gdal23-proj49 mode=tests - tag=pg96-geos36-gdal22-proj49 mode=tests diff --git a/ci/travis/run_usan_gcc.sh b/ci/travis/run_usan_gcc.sh index 332006e5c..9535a5bdf 100644 --- a/ci/travis/run_usan_gcc.sh +++ b/ci/travis/run_usan_gcc.sh @@ -2,7 +2,7 @@ set -e # Enable undefined behaviour sanitizer using traps to -CFLAGS_STD="-g -O2 -mtune=generic -fno-omit-frame-pointer -fsanitize=undefined -fsanitize-undefined-trap-on-error" +CFLAGS_STD="-g3 -O0 -mtune=generic -fno-omit-frame-pointer -fsanitize=undefined -fsanitize-undefined-trap-on-error" LDFLAGS_STD="-Wl,-Bsymbolic-functions -Wl,-z,relro" /usr/local/pgsql/bin/pg_ctl -c -l /tmp/logfile start -- 2.50.0