From: Zack Cerza Date: Fri, 25 Oct 2024 22:49:10 +0000 (-0600) Subject: ceph.spec.in: Add option to enable sccache X-Git-Tag: v20.0.0~686^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F60578%2Fhead;p=ceph.git ceph.spec.in: Add option to enable sccache Signed-off-by: Zack Cerza --- diff --git a/ceph.spec.in b/ceph.spec.in index 2239d42e1659..ece1ebf2ec85 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -143,6 +143,7 @@ # disable dwz for 50% speedup at the cost of ~33% space %global _find_debuginfo_dwz_opts %{nil} %endif +%bcond_with sccache %{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d} %{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create} @@ -1523,6 +1524,9 @@ cmake .. \ -DWITH_JAEGER:BOOL=OFF \ %endif -DWITH_GRAFANA:BOOL=ON \ +%if %{with sccache} + -DWITH_SCCACHE=ON \ +%endif %if 0%{with cephadm_bundling} %if 0%{with cephadm_pip_deps} -DCEPHADM_BUNDLED_DEPENDENCIES=pip