diff options
author | Vadim Zeitlin <vz-swig@zeitlins.org> | 2020-05-22 15:37:33 +0200 |
---|---|---|
committer | Vadim Zeitlin <vz-swig@zeitlins.org> | 2020-05-23 02:33:46 +0200 |
commit | 6cf36d4cd6bed0519648d2a01ba69cc6b7ec8b3f (patch) | |
tree | 3567d5fa39ea67d3be8ebfd2c094d8e4e75f045a /.travis.yml | |
parent | ae0efd3d742ad083312fadbc652d4d66fdad6f4d (diff) | |
download | swig-6cf36d4cd6bed0519648d2a01ba69cc6b7ec8b3f.tar.gz |
Force using C11 for Guile builds on Travis CI
Compiling code including Guile headers with default compiler options
doesn't work any more since a recent (~2020-05-05) update to Guile 3.0.2
on Homebrew (2.2.7 was used previously) due to
error: redefinition of typedef 'scm_print_state' is a C11 feature
in libguile/print.h and scm.h headers.
Work around this by enabling C11 for this build by explicitly setting
CSTD. Note that we can't just use CPP11=1 for this build, because this
would also enable C++11-specific tests that are not currently supported
by Guile module.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 32c6656dd..cedce513d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -428,7 +428,7 @@ matrix: env: SWIGLANG=go - compiler: clang os: osx - env: SWIGLANG=guile + env: SWIGLANG=guile CSTD=c11 - compiler: clang os: osx env: SWIGLANG=java |