sccache is enabled via WITH_SCCACHE, but run-make.sh only printed
ccache statistics after the build. Print `sccache --show-stats` too
when sccache is available.
Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
ci_debug "Running cmake"
$DRY_RUN cmake --build . $targets -- $BUILD_MAKEOPTS || return 1
$DRY_RUN ccache -s # print the ccache statistics to evaluate the efficiency
+ # print sccache stats too when built with WITH_SCCACHE
+ if type sccache > /dev/null 2>&1; then
+ $DRY_RUN sccache --show-stats
+ fi
}
DEFAULT_MAKEOPTS=${DEFAULT_MAKEOPTS:--j$(get_processors)}