From fd109a833e60171b08b07055650e7c64d19184a3ada15eae64618caf417ffb15 Mon Sep 17 00:00:00 2001 From: Dario Faggioli Date: Tue, 14 Dec 2021 12:19:24 +0000 Subject: [PATCH] Accepting request 940281 from home:dirkmueller:Factory - disable QOM cast debug outside the testsuite as the corresponding asserts show up occassionally as top #1 in perf(1) traces under heavy virtio load - enable LTO when we'd like to use LTO OBS-URL: https://build.opensuse.org/request/show/940281 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=679 --- qemu.changes | 8 ++++++++ qemu.spec | 6 ++++++ qemu.spec.in | 6 ++++++ 3 files changed, 20 insertions(+) diff --git a/qemu.changes b/qemu.changes index 2877199..c3ced66 100644 --- a/qemu.changes +++ b/qemu.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Dec 13 15:31:38 UTC 2021 - Dirk Müller + +- disable QOM cast debug outside the testsuite as the corresponding + asserts show up occassionally as top #1 in perf(1) traces under + heavy virtio load +- enable LTO when we'd like to use LTO + ------------------------------------------------------------------- Tue Dec 7 18:17:14 UTC 2021 - Dario Faggioli diff --git a/qemu.spec b/qemu.spec index b7f08ff..5c88895 100644 --- a/qemu.spec +++ b/qemu.spec @@ -1294,6 +1294,12 @@ cd %blddir --disable-stack-protector \ --disable-strip \ --disable-tcg-interpreter \ +%if "%{_lto_cflags}" != "%{nil}" + --enable-lto \ +%endif +%if "%flavor" != "testsuite" + --disable-qom-cast-debug \ +%endif --with-git-submodules=ignore \ %if "%{name}" != "qemu-linux-user" --with-pkgversion="%(echo '%{distro}' | sed 's/ (.*)//')" \ diff --git a/qemu.spec.in b/qemu.spec.in index 5627c08..ed6fc55 100644 --- a/qemu.spec.in +++ b/qemu.spec.in @@ -1125,6 +1125,12 @@ cd %blddir --disable-stack-protector \ --disable-strip \ --disable-tcg-interpreter \ +%if "%{_lto_cflags}" != "%{nil}" + --enable-lto \ +%endif +%if "%flavor" != "testsuite" + --disable-qom-cast-debug \ +%endif --with-git-submodules=ignore \ %if "%{name}" != "qemu-linux-user" --with-pkgversion="%(echo '%{distro}' | sed 's/ (.*)//')" \