on xenial help sign in
Use ccache only if compilers are not explicitly set.
commit34ac336c1da3f7b07f59a565869c800c5a5fba0b authorJussi Pakkanen <jussi.pakkanen@canonical.com> dateMon 2 Sep 2013, 15:24 (13 years ago) parent4e09b72
1 file changed+6−2
build+6−2
build+6−2
@@ -58,8 +58,12 @@ mk_build_deps() {
5858}
5959
6060if [ -f "/usr/bin/ccache" ] ; then
61− export CC='ccache gcc'
62− export CXX='ccache g++'
61+ if [ "x$CC" = "x" ]; then
62+ export CC='ccache gcc'
63+ fi
64+ if [ "x$CXX" = "x" ] ; then
65+ export CXX='ccache g++'
66+ fi
6367fi
6468
6569if [ -f "/usr/bin/ninja" ] ; then