1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-11 13:50:56 -05:00
polybar/common/travis/environment.sh

14 lines
333 B
Bash
Raw Normal View History

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