]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CI: travis: re-enable ASAN on clang
authorWilly Tarreau <w@1wt.eu>
Wed, 18 Mar 2020 08:35:58 +0000 (09:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 18 Mar 2020 08:35:58 +0000 (09:35 +0100)
As spotted by Tim, ASAN is disabled on clang-9 due to an exact compiler
name match. Let's relax the rule and accept "clang" and "clang-*". More
context here: https://www.mail-archive.com/haproxy@formilux.org/msg36688.html

.travis.yml

index 5808386e321b512c2a8e552a78bb7c3500bcf142..ec71fc806f677908b7b4a4b5e500311851c4cc0e 100644 (file)
@@ -105,7 +105,7 @@ install:
   - travis_wait scripts/build-ssl.sh > build-ssl.log 2>&1 || (cat build-ssl.log && exit 1)
 
 script:
-  - if [ "$CC"  = "clang" ]; then export FLAGS="$FLAGS USE_OBSOLETE_LINKER=1" DEBUG_CFLAGS="-g -fsanitize=address" LDFLAGS="-fsanitize=address"; fi
+  - if [ "${CC%-*}"  = "clang" ]; then export FLAGS="$FLAGS USE_OBSOLETE_LINKER=1" DEBUG_CFLAGS="-g -fsanitize=address" LDFLAGS="-fsanitize=address"; fi
   - make -C contrib/wurfl
   - make -j3 CC=$CC V=1 ERR=1 TARGET=$TARGET $FLAGS DEBUG_CFLAGS="$DEBUG_CFLAGS" LDFLAGS="$LDFLAGS -L$SSL_LIB -Wl,-rpath,$SSL_LIB" 51DEGREES_SRC="$FIFTYONEDEGREES_SRC" EXTRA_OBJS="$EXTRA_OBJS"
   - ./haproxy -vv