Skip to content

Commit 64c9b53

Browse files
committed
ceph.spec.in: Add option to enable sccache
Signed-off-by: Zack Cerza <[email protected]>
1 parent f55fc45 commit 64c9b53

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ceph.spec.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143
# disable dwz for 50% speedup at the cost of ~33% space
144144
%global _find_debuginfo_dwz_opts %{nil}
145145
%endif
146+
%bcond_with sccache
146147

147148
%{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d}
148149
%{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create}
@@ -1523,6 +1524,9 @@ cmake .. \
15231524
-DWITH_JAEGER:BOOL=OFF \
15241525
%endif
15251526
-DWITH_GRAFANA:BOOL=ON \
1527+
%if %{with sccache}
1528+
-DWITH_SCCACHE=ON \
1529+
%endif
15261530
%if 0%{with cephadm_bundling}
15271531
%if 0%{with cephadm_pip_deps}
15281532
-DCEPHADM_BUNDLED_DEPENDENCIES=pip

0 commit comments

Comments
 (0)