summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2014-03-26 23:17:56 -0700
committerJosh Triplett <josh@joshtriplett.org>2014-03-27 00:40:27 -0700
commit7d698125b1f05173f3656a89755a2eb58813b002 (patch)
tree421dc487e0173d8f54280b9cb25c774040511955 /.travis.yml
parentfa5e88f170cb37c7b2b9bb015c8c5b854ffd8a3e (diff)
downloadlibffi-7d698125b1f05173f3656a89755a2eb58813b002.tar.gz
Use the proper C++ compiler to run C++ tests
Running the C compiler with -shared-libgcc -lstdc++ does not work on non-GCC compilers.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 6cf0791..6c14fcd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,4 @@
-language: c
+language: cpp
compiler:
- gcc
- clang
@@ -12,7 +12,7 @@ matrix:
before_script:
- sudo apt-get install dejagnu texinfo
- - if [ "$HOST" = i386-pc-linux-gnu ] ; then sudo apt-get install gcc-multilib g++-multilib && CC="$CC -m32" ; fi
+ - if [ "$HOST" = i386-pc-linux-gnu ] ; then sudo apt-get install gcc-multilib g++-multilib && CC="$CC -m32" && CXX="$CXX -m32" ; fi
script:
- ./autogen.sh