polybar-dwm/common/travis/environment.sh

14 lines
333 B
Bash
Raw Normal View History

2016-12-15 19:22:42 +00:00
#!/bin/bash
2016-11-19 07:55:46 +00:00
# Update compiler flags
2016-12-15 19:22:42 +00:00
if [ "${CXX:0:7}" = "clang++" ]; then
2016-11-19 07:55:46 +00:00
export CXX="clang++-3.8"
export CC="clang-3.8"
export CXXFLAGS="${CXXFLAGS} -Qunused-arguments"
2016-12-15 20:32:05 +00:00
elif [ "${CXX:0:3}" = "g++" ]; then
export CXX="g++-5"
export CC="gcc-5"
elif [ "${CXX:0:3}" = "gcc" ]; then
2016-11-19 07:55:46 +00:00
export CXX="g++-5"
export CC="gcc-5"
fi