Allow setting CCACHE=1 to wrap all llvm-mingw building in ccache
This commit is contained in:
1 parent
1c31677a64
commit
71e3239442
1 file changed
+5
-1
@@ -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 "$@"
|
||||
Reference in new issue
Block a user