]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: Add option to enable sccache
authorZack Cerza <zack@redhat.com>
Fri, 25 Oct 2024 22:49:10 +0000 (16:49 -0600)
committerZack Cerza <zack@redhat.com>
Fri, 25 Oct 2024 23:04:50 +0000 (17:04 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
ceph.spec.in

index 32517c6492b1aebe585a4d5882bfbd5e45430e8b..bfa4209112b22e7fe32fcf061a8d363c64474945 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}
@@ -1529,6 +1530,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