Ports: Add option to disable ccache

This commit is contained in:
Timur Sultanov 2022-06-11 14:18:59 -06:00 committed by Linus Groh
parent 15cce56411
commit 35d31dec7e

View file

@ -25,7 +25,7 @@ target_env
DESTDIR="${SERENITY_INSTALL_ROOT}"
enable_ccache() {
if command -v ccache &>/dev/null; then
if [ "${USE_CCACHE:-true}" = "true" ] && command -v ccache &>/dev/null; then
ccache_tooldir="${SERENITY_BUILD_DIR}/ccache"
mkdir -p "$ccache_tooldir"
if [ "$SERENITY_TOOLCHAIN" = "Clang" ]; then