summaryrefslogtreecommitdiffstats
path: root/do_cmake.sh
diff options
context:
space:
mode:
authorZack Cerza <zack@redhat.com>2024-03-14 22:24:30 +0100
committerZack Cerza <zack@redhat.com>2024-04-10 00:39:35 +0200
commit0c345becf8642dafff5787f40719fdcde00c8bb3 (patch)
tree87d7e6afbbf01e2c1aa836f44d8be7b81e0f7cf2 /do_cmake.sh
parentMerge pull request #56577 from nbalacha/wip-nbalacha-code-cleanup (diff)
downloadceph-0c345becf8642dafff5787f40719fdcde00c8bb3.tar.xz
ceph-0c345becf8642dafff5787f40719fdcde00c8bb3.zip
cmake: Support sccache
Signed-off-by: Zack Cerza <zack@redhat.com>
Diffstat (limited to 'do_cmake.sh')
-rwxr-xr-xdo_cmake.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/do_cmake.sh b/do_cmake.sh
index 8177e726396..ea32547c071 100755
--- a/do_cmake.sh
+++ b/do_cmake.sh
@@ -58,7 +58,10 @@ fi
ARGS+=" -DWITH_PYTHON3=${PYBUILD}"
-if type ccache > /dev/null 2>&1 ; then
+if type sccache > /dev/null 2>&1 ; then
+ echo "enabling sccache"
+ ARGS+=" -DWITH_SCCACHE=ON"
+elif type ccache > /dev/null 2>&1 ; then
echo "enabling ccache"
ARGS+=" -DWITH_CCACHE=ON"
fi