From 35d31dec7e02df3f52f0ef4c432f7bebed67d259 Mon Sep 17 00:00:00 2001 From: Timur Sultanov Date: Sat, 11 Jun 2022 14:18:59 -0600 Subject: [PATCH] Ports: Add option to disable ccache --- Ports/.port_include.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index ca8f9f328e..eb98b1ff2f 100755 --- a/Ports/.port_include.sh +++ b/Ports/.port_include.sh @@ -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