travis-ci: -fsanitize=address

This commit is contained in:
Thomas Bernard 2020-06-05 20:43:57 +02:00
parent 409ba9c0f2
commit 0ce0a0d392
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,8 @@ compiler:
before_install: before_install:
- 'if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$CC" == "gcc" ] ; then CC=gcc-4.9; fi' - 'if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$CC" == "gcc" ] ; then CC=gcc-4.9; fi'
- export CFLAGS="-fsanitize=address"
- export LDFLAGS="-fsanitize=address"
script: script:
- 'cd $TRAVIS_BUILD_DIR && cd $PROJECT' - 'cd $TRAVIS_BUILD_DIR && cd $PROJECT'