1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:47:45 +00:00

Ports: Don't create ccache symlinks for tools we don't have

This commit is contained in:
Tim Schumacher 2022-07-07 19:22:44 +02:00 committed by Linus Groh
parent b1b61c902d
commit 5bbd5e7322

View file

@ -29,7 +29,11 @@ enable_ccache() {
ccache_tooldir="${SERENITY_BUILD_DIR}/ccache" ccache_tooldir="${SERENITY_BUILD_DIR}/ccache"
mkdir -p "$ccache_tooldir" mkdir -p "$ccache_tooldir"
for tool in cc clang gcc c++ clang++ g++; do for tool in cc clang gcc c++ clang++ g++; do
ln -sf "$(command -v ccache)" "${ccache_tooldir}/${SERENITY_ARCH}-pc-serenity-${tool}" name="${SERENITY_ARCH}-pc-serenity-${tool}"
if ! command -v "${name}" >/dev/null; then
continue
fi
ln -sf "$(command -v ccache)" "${ccache_tooldir}/${name}"
done done
export PATH="${ccache_tooldir}:$PATH" export PATH="${ccache_tooldir}:$PATH"
fi fi