Merge 20-ninja, 20-sccache into a single file and add BUILDAH_FORMAT=docker for Podman health check support. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
20 lines
515 B
Text
Executable file
20 lines
515 B
Text
Executable file
# shellcheck shell=bash
|
|
# Build tool settings: Ninja/CMake, sccache, Podman/Buildah
|
|
|
|
if command -v ninja &>/dev/null; then
|
|
export NINJA_STATUS="[%e sec | %p (%u remaining) | %o / sec] "
|
|
export CMAKE_GENERATOR=Ninja
|
|
fi
|
|
|
|
if command -v ccache &>/dev/null; then
|
|
export CMAKE_C_COMPILER_LAUNCHER=ccache
|
|
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
|
|
fi
|
|
|
|
if command -v sccache &>/dev/null; then
|
|
export SCCACHE_CACHE_SIZE="40G"
|
|
fi
|
|
|
|
if command -v podman &>/dev/null; then
|
|
export BUILDAH_FORMAT=docker
|
|
fi
|