1
Fork 0
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:
Andrew Kaster 2022-06-11 16:29:05 -06:00 committed by Andreas Kling
parent 8c877664f7
commit ad0a001f0a
2 changed files with 11 additions and 11 deletions

View file

@ -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
}