Last active
September 9, 2018 20:58
-
-
Save dapperfu/0e971a83e94935e60b36017349f6ef72 to your computer and use it in GitHub Desktop.
Build. Faster.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
ICECC=`which icecc` | |
CCACHE=`which ccache` | |
for GCC_VER in 4.8 5 6 7 8 | |
do | |
apt-get install gcc-${GCC_VER} | |
ln -s ${ICECC} /usr/lib/icecc/bin/gcc-${GCC_VER} | |
ln -s ${ICECC} /usr/lib/icecc/bin/g++-${GCC_VER} | |
ln -s ${CCACHE} /opt/ccache/bin/gcc-${GCC_VER} | |
ln -s ${CCACHE} /opt/ccache/bin/g++-${GCC_VER} | |
done | |
for CLANG_VER in 3.9 4.0 5.0 6.0 7 8 | |
do | |
apt-get install clang-${CLANG_VER} | |
ln -s ${ICECC} /usr/lib/icecc/bin/clang-${CLANG_VER} | |
ln -s ${ICECC} /usr/lib/icecc/bin/clang++-${CLANG_VER} | |
ln -s ${CCACHE} /opt/ccache/bin/clang-${CLANG_VER} | |
ln -s ${CCACHE} /opt/ccache/bin/clang++-${CLANG_VER} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment