qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] meson: change buildtype when debug_info=no
@ 2021-04-28 19:55 Joelle van Dyne
  2021-04-29  5:07 ` Philippe Mathieu-Daudé
  2021-04-29 11:02 ` Paolo Bonzini
  0 siblings, 2 replies; 5+ messages in thread
From: Joelle van Dyne @ 2021-04-28 19:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: Joelle van Dyne

Meson defaults builds to 'debugoptimized' which adds '-g -O2'
to CFLAGS. If the user specifies '--disable-debug-info' we
should instead build with 'release' which does not emit any
debug info.

Signed-off-by: Joelle van Dyne <j@getutm.app>
---
 configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index 4f374b4889..5c3568cbc3 100755
--- a/configure
+++ b/configure
@@ -6398,6 +6398,7 @@ NINJA=$ninja $meson setup \
         --sysconfdir "$sysconfdir" \
         --localedir "$localedir" \
         --localstatedir "$local_statedir" \
+        --buildtype $(if test "$debug_info" = yes; then echo "debugoptimized"; else echo "release"; fi) \
         -Ddocdir="$docdir" \
         -Dqemu_firmwarepath="$firmwarepath" \
         -Dqemu_suffix="$qemu_suffix" \
-- 
2.28.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-29 11:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-28 19:55 [PATCH] meson: change buildtype when debug_info=no Joelle van Dyne
2021-04-29  5:07 ` Philippe Mathieu-Daudé
2021-04-29  7:33   ` Joelle van Dyne
2021-04-29  9:55     ` Philippe Mathieu-Daudé
2021-04-29 11:02 ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).