]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: Add option to enable sccache 60578/head
authorZack Cerza <zack@redhat.com>
Fri, 25 Oct 2024 22:49:10 +0000 (16:49 -0600)
committerZack Cerza <zack@redhat.com>
Thu, 7 Nov 2024 22:21:32 +0000 (15:21 -0700)
Signed-off-by: Zack Cerza <zack@redhat.com>
ceph.spec.in

index 2239d42e1659c57d36d312eec7e07a38cdfa0ddd..ece1ebf2ec85750049b0200128554f45f4f6b9bc 100644 (file)
 # 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