]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
build/script: print sccache stats alongside ccache 69462/head
authorSun Yuechi <sunyuechi@iscas.ac.cn>
Sun, 14 Jun 2026 14:29:54 +0000 (22:29 +0800)
committerSun Yuechi <sunyuechi@iscas.ac.cn>
Sun, 14 Jun 2026 14:33:55 +0000 (22:33 +0800)
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>
src/script/run-make.sh

index 30ca35ce2740a46662bdd0f2880a757758c9ac36..236af0cf66982ad91964d66f4992ca1a5bc30987 100755 (executable)
@@ -190,6 +190,10 @@ function build() {
     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)}