chore(main/nodejs): cache host builds

This commit is contained in:
Yaksh Bariya 2023-06-10 19:19:35 +05:30
parent dac1a785ca
commit 1454810160
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
1 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,10 @@ termux_step_configure() {
export CC_host=gcc
export CXX_host=g++
export LINK_host=g++
if [ "$TERMUX_CACHE_ENABLED" = true ]; then
CC_host="ccache gcc"
CXX_host="ccache g++"
fi
LDFLAGS+=" -ldl"
# See note above TERMUX_PKG_DEPENDS why we do not use a shared libuv.