1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:17:44 +00:00

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}" DESTDIR="${SERENITY_INSTALL_ROOT}"
enable_ccache() { 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" ccache_tooldir="${SERENITY_BUILD_DIR}/ccache"
mkdir -p "$ccache_tooldir" mkdir -p "$ccache_tooldir"
if [ "$SERENITY_TOOLCHAIN" = "Clang" ]; then if [ "$SERENITY_TOOLCHAIN" = "Clang" ]; then