From 0c8834f776c21c11266ac1bd8a2bd517ec4f3e8d Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 11 Dec 2015 01:16:01 +0100 Subject: [PATCH] Travis: Run the pre-C99 compilation test only once, with gcc Compile without optimizations (and symbols) as an opportunity to also check that it properly compiles under these conditions (re: force_inline issues) --- .travis.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index fa08beb4..8261e3c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,13 +16,8 @@ before_script: script: - ./configure --disable-dependency-tracking - - make - - sha512sum src/libsodium/.libs/libsodium.so > lib.sum - - make clean - - make CPPFLAGS='-DSODIUM_C99\(X\)=' - - sha512sum src/libsodium/.libs/libsodium.so > lib-oldc.sum - - cmp lib.sum lib-oldc.sum - - make clean + - > + if [ "$CC" = 'gcc' ]; then make CFLAGS='-g0' > /dev/null && cp src/libsodium/.libs/libsodium.so lib.so && make clean > /dev/null && make CFLAGS='-g0' CPPFLAGS='-DSODIUM_C99\(X\)=' > /dev/null && cp src/libsodium/.libs/libsodium.so lib-oldc.so && cmp lib.so lib-oldc.so && echo No binary changes && make clean > /dev/null ; fi - make distcheck - make distclean - ./configure --disable-dependency-tracking --enable-minimal