do not set -fsanitize=address when building miniupnpc for macOS

This commit is contained in:
Thomas Bernard 2020-06-05 22:46:52 +02:00
parent 471c313f9d
commit 87e818b707
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C
1 changed files with 4 additions and 2 deletions

View File

@ -45,8 +45,10 @@ compiler:
before_install:
- 'if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$CC" == "gcc" ] ; then CC=gcc-4.9; fi'
- export CFLAGS="-fsanitize=address -O1 -g -fno-omit-frame-pointer"
- export LDFLAGS="-fsanitize=address -g"
- 'if [ "$TRAVIS_OS_NAME" != "osx" ] || [ "$PROJECT" != "miniupnpc" ] ; then
export CFLAGS="-fsanitize=address -O1 -g -fno-omit-frame-pointer" ;
export LDFLAGS="-fsanitize=address -g" ;
fi'
script:
- 'cd $TRAVIS_BUILD_DIR && cd $PROJECT'