]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: Add an option to disable dwz 60577/head
authorZack Cerza <zack@redhat.com>
Fri, 25 Oct 2024 17:56:10 +0000 (11:56 -0600)
committerZack Cerza <zack@redhat.com>
Fri, 1 Nov 2024 16:20:31 +0000 (10:20 -0600)
We disabled dwz in 2017, then re-enabled it in 2021. In my tests I observe dwz
adding about 50% to build times in exchange for 33% space-saving.

Signed-off-by: Zack Cerza <zack@redhat.com>
ceph.spec.in

index 14c1420af40f04287e77040e2555d92dfba13979..413d01070786cb25fbdb57e72d3735f279e4c3ac 100644 (file)
 %endif
 %bcond_without cephadm_bundling
 %bcond_without cephadm_pip_deps
+%bcond_without dwz
+%if %{with dwz}
+%else
+# disable dwz for 50% speedup at the cost of ~33% space
+%global _find_debuginfo_dwz_opts %{nil}
+%endif
 
 %{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d}
 %{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create}