Skip to content

Commit

Permalink
Travis: build with both GCC and Clang
Browse files Browse the repository at this point in the history
  • Loading branch information
denzp committed Jun 14, 2017
1 parent 17cf6b4 commit d3f4737
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
31 changes: 27 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@ language: rust

matrix:
include:
- env: TARGET=x86_64-unknown-linux-gnu
rust: nightly
- rust: nightly
env:
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
- TARGET=x86_64-unknown-linux-gnu

before_install: set -e
- rust: nightly
env:
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
- TARGET=x86_64-unknown-linux-gnu

before_install:
- set -e
- eval "${MATRIX_EVAL}"

script:
- cargo check --target $TARGET
Expand All @@ -15,6 +24,20 @@ after_script: set +e

cache: cargo

branches:
only:
- master

notifications:
email:
on_success: never
on_success: never

addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty
packages:
- gcc-6
- g++-6
- clang-5.0
4 changes: 4 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,9 @@ notifications:
- provider: Email
on_build_success: false

branches:
only:
- master

# Building is done in the test phase, so we disable Appveyor's build phase.
build: false
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ fn main() {
.flag("-pedantic")
.flag("-Wall")
.flag("-Werror")
.flag("-std=c++11")
.flag("-D_GLIBCXX_USE_CXX11_ABI=0")
.file("llvm/external-refs.cpp")
.compile("librust-ptx-llvm-stuff.a");
Expand Down

0 comments on commit d3f4737

Please sign in to comment.