From 6cf36d4cd6bed0519648d2a01ba69cc6b7ec8b3f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 22 May 2020 15:37:33 +0200 Subject: [PATCH] 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. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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