mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 09:55:55 +00:00
.travis.yml: add gcc sanitizer build
As it seems easy to break the ThreadSanitizer build we should defend it to ensure that fixes get applied when it breaks. We use the Ubuntu GCC PPA to get the latest GCC goodness. As we need to use the -fuse-ld=gold work around we have to disable the linux-user targets as these trip up the linker. The make check run is also disabled for Travis but this can be re-enabled once the check targets have been fixed. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20160930213106.20186-13-alex.bennee@linaro.org>
This commit is contained in:
parent
a31393e7a5
commit
32265288a9
45
.travis.yml
45
.travis.yml
|
@ -9,6 +9,7 @@ cache: ccache
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
|
# Build dependencies
|
||||||
- libaio-dev
|
- libaio-dev
|
||||||
- libattr1-dev
|
- libattr1-dev
|
||||||
- libbrlapi-dev
|
- libbrlapi-dev
|
||||||
|
@ -89,6 +90,7 @@ matrix:
|
||||||
- env: CONFIG=""
|
- env: CONFIG=""
|
||||||
os: osx
|
os: osx
|
||||||
compiler: clang
|
compiler: clang
|
||||||
|
# Plain Trusty Build
|
||||||
- env: CONFIG=""
|
- env: CONFIG=""
|
||||||
sudo: required
|
sudo: required
|
||||||
addons:
|
addons:
|
||||||
|
@ -99,3 +101,46 @@ matrix:
|
||||||
- sudo apt-get build-dep -qq qemu
|
- sudo apt-get build-dep -qq qemu
|
||||||
- wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
|
- wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
|
||||||
- git submodule update --init --recursive
|
- git submodule update --init --recursive
|
||||||
|
# Using newer GCC with sanitizers
|
||||||
|
- addons:
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
# PPAs for newer toolchains
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
packages:
|
||||||
|
# Extra toolchains
|
||||||
|
- gcc-5
|
||||||
|
- g++-5
|
||||||
|
# Build dependencies
|
||||||
|
- libaio-dev
|
||||||
|
- libattr1-dev
|
||||||
|
- libbrlapi-dev
|
||||||
|
- libcap-ng-dev
|
||||||
|
- libgnutls-dev
|
||||||
|
- libgtk-3-dev
|
||||||
|
- libiscsi-dev
|
||||||
|
- liblttng-ust-dev
|
||||||
|
- libnfs-dev
|
||||||
|
- libncurses5-dev
|
||||||
|
- libnss3-dev
|
||||||
|
- libpixman-1-dev
|
||||||
|
- libpng12-dev
|
||||||
|
- librados-dev
|
||||||
|
- libsdl1.2-dev
|
||||||
|
- libseccomp-dev
|
||||||
|
- libspice-protocol-dev
|
||||||
|
- libspice-server-dev
|
||||||
|
- libssh2-1-dev
|
||||||
|
- liburcu-dev
|
||||||
|
- libusb-1.0-0-dev
|
||||||
|
- libvte-2.90-dev
|
||||||
|
- sparse
|
||||||
|
- uuid-dev
|
||||||
|
language: generic
|
||||||
|
compiler: none
|
||||||
|
env:
|
||||||
|
- COMPILER_NAME=gcc CXX=g++-5 CC=gcc-5
|
||||||
|
- CONFIG="--cc=gcc-5 --cxx=g++-5 --disable-pie --disable-linux-user --with-coroutine=gthread"
|
||||||
|
- TEST_CMD=""
|
||||||
|
before_script:
|
||||||
|
- ./configure ${CONFIG} --extra-cflags="-g3 -O0 -fsanitize=thread -fuse-ld=gold" || cat config.log
|
||||||
|
|
Loading…
Reference in a new issue