From: Ivan Maidanski Date: Fri, 27 Jan 2017 17:20:31 +0000 (+0300) Subject: Travis CI: compile both for x86 and x64 X-Git-Tag: v7.6.0~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e294a7717b8853760952a245a9998b37386e0e45;p=libatomic_ops Travis CI: compile both for x86 and x64 --- diff --git a/.travis.yml b/.travis.yml index 821b80c..10d56ac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,11 +8,19 @@ compiler: - clang - gcc -sudo: false +env: + - CFLAGS_EXTRA= + - CFLAGS_EXTRA=-march=native + - CFLAGS_EXTRA=-m32 -march=native + +sudo: required + +before_install: + - if [[ "$TRAVIS_OS_NAME" == "linux" && "$CFLAGS_EXTRA" == -m32* ]]; then sudo apt-get install libc6:i386 libc6-dev-i386; fi install: - ./autogen.sh - ./configure --enable-assertions --enable-werror script: - - make -j check CFLAGS_EXTRA="-march=native" + - make -j check CFLAGS_EXTRA="$CFLAGS_EXTRA"