mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:47:37 +00:00
Ports: Enable ccache for SERENITY_TOOLCHAIN=Clang
This commit is contained in:
parent
9b34ffd964
commit
f123fd7af6
1 changed files with 9 additions and 3 deletions
|
@ -22,9 +22,15 @@ enable_ccache() {
|
||||||
if command -v ccache &>/dev/null; then
|
if 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"
|
||||||
for tool in gcc g++ c++; do
|
if [ "$SERENITY_TOOLCHAIN" = "Clang" ]; then
|
||||||
ln -sf "$(command -v ccache)" "${ccache_tooldir}/${SERENITY_ARCH}-pc-serenity-${tool}"
|
for tool in clang clang++; do
|
||||||
done
|
ln -sf "$(command -v ccache)" "${ccache_tooldir}/$tool"
|
||||||
|
done
|
||||||
|
else
|
||||||
|
for tool in gcc g++ c++; do
|
||||||
|
ln -sf "$(command -v ccache)" "${ccache_tooldir}/${SERENITY_ARCH}-pc-serenity-${tool}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
export PATH="${ccache_tooldir}:$PATH"
|
export PATH="${ccache_tooldir}:$PATH"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue