Compare commits

...

3 commits

Author SHA1 Message Date
Dane Springmeyer
f8ed6ade48 faster running sanitizer builds 2016-03-10 16:11:22 -08:00
Dane Springmeyer
7a74a2ca45 address sanitizer is busted in clang 3.7/3.8 packages - refs https://llvm.org/bugs/show_bug.cgi?id=22757 2016-03-10 14:31:07 -08:00
Dane Springmeyer
32e6b0507c [travis] -fsanitize=thread -fsanitize=address on linux 2016-03-10 13:51:44 -08:00
2 changed files with 29 additions and 9 deletions

View file

@ -30,17 +30,33 @@ matrix:
packages: [ 'clang-3.5' ]
- 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"
compiler: ": clang-address"
env: JOBS=8 SANITIZE_ADDRESS=True CXX="ccache clang++-3.6 -Qunused-arguments" CC="clang-3.6"
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
sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.6' ]
packages: [ 'clang-3.6' ]
- os: linux
sudo: false
compiler: ": clang-thread"
env: JOBS=8 SANITIZE_THREAD=True CXX="ccache clang++-3.7 -Qunused-arguments" CC="clang-3.7"
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:
- source scripts/travis-common.sh

View file

@ -91,6 +91,10 @@ configure () {
./configure "$@" PREFIX=${MASON_PREFIX} \
PATH_REPLACE='' MAPNIK_BUNDLED_SHARE_DIRECTORY=True \
RUNTIME_LINK='static' WARNING_CXXFLAGS="-Wno-unknown-warning-option"
elif enabled ${SANITIZE_ADDRESS}; then
./configure "$@" OPTIMIZATION=1 CUSTOM_CXXFLAGS="-fsanitize=address -fno-omit-frame-pointer" CUSTOM_LDFLAGS="-fsanitize=address"
elif enabled ${SANITIZE_THREAD}; then
./configure "$@" OPTIMIZATION=1 CUSTOM_CXXFLAGS="-fsanitize=thread -fno-omit-frame-pointer" CUSTOM_LDFLAGS="-fsanitize=thread"
else
./configure "$@" WARNING_CXXFLAGS="-Wno-unknown-warning-option"
fi