mirror of
https://github.com/RGBCube/serenity
synced 2025-07-30 13:17:45 +00:00
Ports: Use $arch-serenity-pc-clang{++} for CC and CXX
This lets us eliminate the extra arguments on CC and CXX for ports that care about CC and CXX pointing to actual filenames they can invoke realpath or basename on.
This commit is contained in:
parent
8c877664f7
commit
ad0a001f0a
2 changed files with 11 additions and 11 deletions
|
@ -28,15 +28,9 @@ enable_ccache() {
|
|||
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
|
||||
for tool in clang clang++; do
|
||||
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
|
||||
for tool in cc clang gcc c++ clang++ g++; do
|
||||
ln -sf "$(command -v ccache)" "${ccache_tooldir}/${SERENITY_ARCH}-pc-serenity-${tool}"
|
||||
done
|
||||
export PATH="${ccache_tooldir}:$PATH"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue