mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 10:33:52 +01:00
Problem: ASAN test doesn't print good traces with GCC 4.8
Solution: add Ubuntu toolchain PPA and use GCC 6
This commit is contained in:
parent
86f9f1df7a
commit
655fbfc399
@ -57,6 +57,14 @@ matrix:
|
||||
os: osx
|
||||
- env: BUILD_TYPE=default CURVE=tweetnacl DRAFT=enabled ADDRESS_SANITIZER=enabled
|
||||
os: linux
|
||||
dist: trusty
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- sourceline: 'ppa:ubuntu-toolchain-r/test'
|
||||
packages:
|
||||
- g++-6
|
||||
- gcc-6
|
||||
|
||||
sudo: required
|
||||
|
||||
|
@ -17,6 +17,11 @@ if [ $BUILD_TYPE == "default" ]; then
|
||||
|
||||
if [ -n "$ADDRESS_SANITIZER" ] && [ "$ADDRESS_SANITIZER" == "enabled" ]; then
|
||||
CONFIG_OPTS+=("--enable-address-sanitizer=yes")
|
||||
CONFIG_OPTS+=("CXX=g++-6")
|
||||
CONFIG_OPTS+=("CC=gcc-6")
|
||||
# workaround for linker problem with ASAN options in GCC
|
||||
# http://stackoverflow.com/questions/37603238/fsanitize-not-using-gold-linker-in-gcc-6-1
|
||||
CONFIG_OPTS+=("LDFLAGS=-fuse-ld=gold")
|
||||
fi
|
||||
|
||||
if [ -z $CURVE ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user