Allow setting CCACHE=1 to wrap all llvm-mingw building in ccache

This commit is contained in:
Martin Storsjö committed 2018-02-26 12:50:11 +02:00
1 parent 1c31677a64
commit 71e3239442
1 file changed
+5 -1
+5 -1
View File
@@ -36,4 +36,8 @@ aarch64)
ARCH_FLAGS=-femulated-tls
;;
esac
$DIR/$EXE -target $TARGET -rtlib=compiler-rt -stdlib=libc++ -fuse-ld=lld --sysroot="$SYSROOT" $ARCH_FLAGS -Qunused-arguments "$@"
# Allow setting e.g. CCACHE=1 to wrap all building in ccache.
if [ -n "$CCACHE" ]; then
CCACHE=ccache
fi
$CCACHE $DIR/$EXE -target $TARGET -rtlib=compiler-rt -stdlib=libc++ -fuse-ld=lld --sysroot="$SYSROOT" $ARCH_FLAGS -Qunused-arguments "$@"