summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle2024-11-09 23:32:05 +0000
committerDaniel Golle2024-11-12 02:31:06 +0000
commitbe3e7a84bd37f29e14e4c6a89b8c79bc9808c36c (patch)
treea4706250745c4537e1bf25bd7dbc364e8cc4f7de
parentfc9ec5bd3d22d50654af154fc779517fa7aecb33 (diff)
downloadopenwrt-be3e7a84bd37f29e14e4c6a89b8c79bc9808c36c.tar.gz
include: meson.mk: honor CONFIG_DEBUG
Set buildtype according to CONFIG_DEBUG. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rw-r--r--include/meson.mk2
1 files changed, 1 insertions, 1 deletions
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 \