mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:27:35 +00:00
Ports: Don't create ccache symlinks for tools we don't have
This commit is contained in:
parent
b1b61c902d
commit
5bbd5e7322
1 changed files with 5 additions and 1 deletions
|
@ -29,7 +29,11 @@ enable_ccache() {
|
|||
ccache_tooldir="${SERENITY_BUILD_DIR}/ccache"
|
||||
mkdir -p "$ccache_tooldir"
|
||||
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
|
||||
export PATH="${ccache_tooldir}:$PATH"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue