From: Ivan Maidanski Date: Wed, 29 Nov 2017 08:20:04 +0000 (+0300) Subject: Travis CI: Test with ASan and GCC X-Git-Tag: v7.6.2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19daee83844f6324229fa303e1515811d2fe41ad;p=gc Travis CI: Test with ASan and GCC (Cherry-pick commit 03dafe9c from 'master' branch.) --- diff --git a/.travis.yml b/.travis.yml index 70381adb..6fa66521 100644 --- a/.travis.yml +++ b/.travis.yml @@ -284,6 +284,20 @@ matrix: - CFLAGS_EXTRA="-fsanitize=address -fno-common -fno-omit-frame-pointer" - CONF_OPTIONS="--enable-cplusplus" - TESTS_CUSTOM_RUN=true + - os: linux + addons: + apt: + packages: + - gcc-5 + sources: + - ubuntu-toolchain-r-test + compiler: gcc-5 + dist: trusty + language: c + env: + - CFLAGS_EXTRA="-fsanitize=address -O0" + - CONF_OPTIONS="--enable-gc-assertions --enable-handle-fork" + - LDFLAGS="-fuse-ld=gold" - os: osx env: - CFLAGS_EXTRA="-fsanitize=address -m32 -fno-omit-frame-pointer" @@ -463,7 +477,8 @@ script: ./configure $CONF_OPTIONS --enable-werror && cat include/config.h; fi - if [[ "$CSA_CHECK" != true && "$CPPCHECK_ENABLE" == "" ]]; then - make -j -f $MAKEFILE_NAME $MAKEFILE_TARGETS CFLAGS_EXTRA="$CFLAGS_EXTRA"; + make -j -f $MAKEFILE_NAME $MAKEFILE_TARGETS CFLAGS_EXTRA="$CFLAGS_EXTRA" + LDFLAGS="$LDFLAGS"; fi - if [ -f gctest.log ]; then cat gctest.log; fi - if [[ "$CSA_CHECK" == true ]]; then