[openwrt/openwrt] include: meson.mk: honor CONFIG_DEBUG

LEDE Commits lede-commits at lists.infradead.org
Mon Nov 11 18:31:56 PST 2024


dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/be3e7a84bd37f29e14e4c6a89b8c79bc9808c36c

commit be3e7a84bd37f29e14e4c6a89b8c79bc9808c36c
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Sun Nov 10 00:32:05 2024 +0100

    include: meson.mk: honor CONFIG_DEBUG
    
    Set buildtype according to CONFIG_DEBUG.
    
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 include/meson.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/meson.mk b/include/meson.mk
index 2a20c2bd6b..ff452d8b01 100644
--- a/include/meson.mk
+++ b/include/meson.mk
@@ -124,7 +124,7 @@ define Build/Configure/Meson
 	$(call Meson/CreateCrossFile,$(PKG_BUILD_DIR)/openwrt-cross.txt)
 	$(call Meson, \
 		setup \
-		--buildtype plain \
+		--buildtype $(if $(CONFIG_DEBUG),debug,plain) \
 		--native-file $(PKG_BUILD_DIR)/openwrt-native.txt \
 		--cross-file $(PKG_BUILD_DIR)/openwrt-cross.txt \
 		-Ddefault_library=both \




More information about the lede-commits mailing list