[travis] -fsanitize=thread -fsanitize=address on linux
This commit is contained in:
parent
228513cf3e
commit
32e6b0507c
2 changed files with 29 additions and 9 deletions
34
.travis.yml
34
.travis.yml
|
@ -30,17 +30,33 @@ matrix:
|
||||||
packages: [ 'clang-3.5' ]
|
packages: [ 'clang-3.5' ]
|
||||||
- os: linux
|
- os: linux
|
||||||
sudo: false
|
sudo: false
|
||||||
compiler: ": clang-coverage"
|
compiler: ": clang-address"
|
||||||
env: JOBS=8 COVERAGE=true LLVM_VERSION="3.5" CXX="ccache clang++-3.5 -Qunused-arguments" CC="clang-3.5"
|
env: JOBS=8 SANITIZE_ADDRESS=True CXX="ccache clang++-3.7 -Qunused-arguments" CC="clang-3.7"
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ]
|
sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.7' ]
|
||||||
packages: [ 'clang-3.5', 'llvm-3.5-dev' ]
|
packages: [ 'clang-3.7' ]
|
||||||
- os: osx
|
- os: linux
|
||||||
compiler: clang
|
sudo: false
|
||||||
# https://docs.travis-ci.com/user/languages/objective-c/#Supported-OS-X-iOS-SDK-versions
|
compiler: ": clang-thread"
|
||||||
osx_image: xcode7.3 # upgrades clang from 6 -> 7
|
env: JOBS=8 SANITIZE_THREAD=True CXX="ccache clang++-3.7 -Qunused-arguments" CC="clang-3.7"
|
||||||
env: JOBS=4 MASON_PUBLISH=true
|
addons:
|
||||||
|
apt:
|
||||||
|
sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.7' ]
|
||||||
|
packages: [ 'clang-3.7' ]
|
||||||
|
# - os: linux
|
||||||
|
# sudo: false
|
||||||
|
# compiler: ": clang-coverage"
|
||||||
|
# env: JOBS=8 COVERAGE=true LLVM_VERSION="3.5" CXX="ccache clang++-3.5 -Qunused-arguments" CC="clang-3.5"
|
||||||
|
# addons:
|
||||||
|
# apt:
|
||||||
|
# sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ]
|
||||||
|
# packages: [ 'clang-3.5', 'llvm-3.5-dev' ]
|
||||||
|
# - os: osx
|
||||||
|
# compiler: clang
|
||||||
|
# # https://docs.travis-ci.com/user/languages/objective-c/#Supported-OS-X-iOS-SDK-versions
|
||||||
|
# osx_image: xcode7.3 # upgrades clang from 6 -> 7
|
||||||
|
# env: JOBS=4 MASON_PUBLISH=true
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- source scripts/travis-common.sh
|
- source scripts/travis-common.sh
|
||||||
|
|
|
@ -91,6 +91,10 @@ configure () {
|
||||||
./configure "$@" PREFIX=${MASON_PREFIX} \
|
./configure "$@" PREFIX=${MASON_PREFIX} \
|
||||||
PATH_REPLACE='' MAPNIK_BUNDLED_SHARE_DIRECTORY=True \
|
PATH_REPLACE='' MAPNIK_BUNDLED_SHARE_DIRECTORY=True \
|
||||||
RUNTIME_LINK='static' WARNING_CXXFLAGS="-Wno-unknown-warning-option"
|
RUNTIME_LINK='static' WARNING_CXXFLAGS="-Wno-unknown-warning-option"
|
||||||
|
elif enabled ${SANITIZE_ADDRESS}; then
|
||||||
|
./configure "$@" DEBUG=True DEBUG_SANITIZE=True
|
||||||
|
elif enabled ${SANITIZE_THREAD}; then
|
||||||
|
./configure "$@" DEBUG=True CUSTOM_CXXFLAGS="-fsanitize=thread" CUSTOM_LDFLAGS="-fsanitize=thread"
|
||||||
else
|
else
|
||||||
./configure "$@" WARNING_CXXFLAGS="-Wno-unknown-warning-option"
|
./configure "$@" WARNING_CXXFLAGS="-Wno-unknown-warning-option"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue