Skip to content

Commit

Permalink
CI: fixes for clang and asan
Browse files Browse the repository at this point in the history
Bison's test 464 (Syntax error as exception) fails on the CI.
Do not use clang with asan on Ubuntu's libc++.
https://bugs.llvm.org/show_bug.cgi?id=17379

* .travis.yml (Clang 7 libc++ and ASAN): New.
(Clang 6 -O3 and libc++): Really use libc++.
(Clang 5): Don't use libc++, nor asan (does not work either, same
reason).
  • Loading branch information
akimd committed Sep 26, 2018
1 parent b2a3a30 commit 13cdb2d
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,23 +110,23 @@ matrix:
## Clang. ##
## ------- ##

# Travis is not ready yet for llvm-toolchain-trusty-7.
#
# - name: "Clang 7 ASAN and libc++"
# os: linux
# addons:
# apt:
# sources:
# - llvm-toolchain-trusty-7
# - ubuntu-toolchain-r-test
# packages:
# - clang-7.0
# - libc++-dev
# # For llvm-symbolizer.
# - llvm-7.0
# env:
# - MATRIX_EVAL="CC='clang-7.0 -fsanitize=address' CXX='clang++-7.0 -fsanitize=address -stdlib=libc++'"
# - ASAN_SYMBOLIZER_PATH=/usr/lib/llvm-7.0/bin/llvm-symbolizer
- name: "Clang 7 libc++ and ASAN"
os: linux
addons:
apt:
sources:
# Travis is not ready yet:
# - llvm-toolchain-trusty-7
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-7 main'
key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key'
- ubuntu-toolchain-r-test
packages:
- clang-7
- libc++-7-dev
- libc++abi-7-dev
env:
# Do not use ASAN with ubuntu's libc++: https://bugs.llvm.org/show_bug.cgi?id=17379
- MATRIX_EVAL="CC='clang-7 -fsanitize=address' CXX='clang++-7 -fsanitize=address -stdlib=libc++'"

- name: "Clang 6 -O3 and libc++"
os: linux
Expand All @@ -139,10 +139,10 @@ matrix:
- clang-6.0
- libc++-dev
env:
- MATRIX_EVAL="CC=clang-6.0 && CXX=clang++-6.0"
- MATRIX_EVAL="CC=clang-6.0 && CXX='clang++-6.0 -stdlib=libc++'"
- CONFIGUREFLAGS='CPPFLAGS=-DNDEBUG CFLAGS=-O3 CXXFLAGS=-O3'

- name: "Clang 5 ASAN"
- name: "Clang 5"
os: linux
addons:
apt:
Expand All @@ -152,7 +152,7 @@ matrix:
- clang-5.0
- libc++-dev
env:
- MATRIX_EVAL="CC='clang-5.0 -fsanitize=address' CXX='clang++-5.0 -fsanitize=address -stdlib=libc++'"
- MATRIX_EVAL="CC='clang-5.0' CXX='clang++-5.0'"

- name: "Clang 4"
os: linux
Expand Down

0 comments on commit 13cdb2d

Please sign in to comment.