[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] meson: change buildtype when debug_info=no
From: |
Joelle van Dyne |
Subject: |
[PATCH] meson: change buildtype when debug_info=no |
Date: |
Wed, 28 Apr 2021 12:55:58 -0700 |
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
- [PATCH] meson: change buildtype when debug_info=no,
Joelle van Dyne <=