Travis: Define CC and CXX in yaml

This commit is contained in:
Benoit Blanchon
2019-03-01 09:15:41 +01:00
parent 27c08b785d
commit cfd924622e
2 changed files with 37 additions and 67 deletions

View File

@ -1,14 +1,7 @@
#!/bin/sh -ex
if [ -n "$GCC" ]; then
export CC="gcc-$GCC"
export CXX="g++-$GCC"
fi
if [ -n "$CLANG" ]; then
export CC="clang-$CLANG"
export CXX="clang++-$CLANG"
fi
export CC="$_CC"
export CXX="$_CXX"
if [ -n "$SANITIZE" ]; then
export CXXFLAGS="-fsanitize=$SANITIZE"