From: Ivan Maidanski Date: Wed, 21 Nov 2018 09:30:24 +0000 (+0300) Subject: Travis CI: Test with AO_USE_PTHREAD_DEFS passed in CFLAGS to configure X-Git-Tag: v8.0.2~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=422745b3e6b2b110117c492bd81682cbeef6848b;p=gc Travis CI: Test with AO_USE_PTHREAD_DEFS passed in CFLAGS to configure --- diff --git a/.travis.yml b/.travis.yml index 1f6ba094..73f6cc22 100644 --- a/.travis.yml +++ b/.travis.yml @@ -98,6 +98,21 @@ matrix: env: - CFLAGS_EXTRA="-march=native -D _FORTIFY_SOURCE=2 -D AO_DISABLE_GCC_ATOMICS" - CONF_OPTIONS="--with-libatomic-ops=no --enable-munmap --enable-cplusplus --enable-static" + - os: linux + compiler: gcc + env: + - CONF_CFLAGS="-D AO_USE_PTHREAD_DEFS" + - CONF_OPTIONS="--with-libatomic-ops=no --enable-gc-assertions --enable-cplusplus --enable-static" + - os: linux + addons: + apt: + packages: + - libatomic-ops-dev + compiler: clang + env: + - CONF_CFLAGS="-D AO_USE_PTHREAD_DEFS" + - CONF_OPTIONS="--with-libatomic-ops=yes --enable-gc-assertions --enable-cplusplus --enable-static" + - NO_CLONE_LIBATOMIC_OPS=true - os: linux compiler: gcc env: @@ -545,6 +560,7 @@ before_install: m4 --version; libtool --version || true; fi +- if [[ "$CONF_CFLAGS" == "" ]]; then CONF_CFLAGS="-g -O2"; fi - if [[ "$MAKEFILE_NAME" == "" ]]; then MAKEFILE_NAME=Makefile; fi - if [[ "$MAKEFILE_TARGETS" == "" ]]; then MAKEFILE_TARGETS="check"; fi @@ -561,7 +577,8 @@ script: - if [[ "$CSA_CHECK" != true && "$CPPCHECK_ENABLE" == "" && "$MAKEFILE_NAME" != "Makefile.direct" && "$COVERITY_SCAN_BRANCH" != 1 ]]; then - ./configure $CONF_OPTIONS --enable-werror && cat include/config.h; + CFLAGS="$CONF_CFLAGS" ./configure $CONF_OPTIONS --enable-werror && + cat include/config.h; fi - if [[ "$CSA_CHECK" != true && "$CPPCHECK_ENABLE" == "" && "$COVERITY_SCAN_BRANCH" != 1 ]]; then