[openwrt/openwrt] include: cmake.mk: honor CONFIG_DEBUG
LEDE Commits
lede-commits at lists.infradead.org
Tue Nov 26 04:23:23 PST 2024
dangole pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/1d612c33de2a57157b3d92e6df0d03fabcbf30b9
commit 1d612c33de2a57157b3d92e6df0d03fabcbf30b9
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Sun Nov 10 00:31:18 2024 +0100
include: cmake.mk: honor CONFIG_DEBUG
Set CMAKE_BUILD_TYPE according to CONFIG_DEBUG.
Signed-off-by: Daniel Golle <daniel at makrotopia.org>
(cherry picked from commit fc9ec5bd3d22d50654af154fc779517fa7aecb33)
---
include/cmake.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/cmake.mk b/include/cmake.mk
index 87309dd045..f59410c2f3 100644
--- a/include/cmake.mk
+++ b/include/cmake.mk
@@ -97,7 +97,7 @@ define Build/Configure/Default
-DCMAKE_SYSTEM_NAME=Linux \
-DCMAKE_SYSTEM_VERSION=1 \
-DCMAKE_SYSTEM_PROCESSOR=$(ARCH) \
- -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_BUILD_TYPE=$(if $(CONFIG_DEBUG),Debug,Release) \
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_C_COMPILER_LAUNCHER="$(CMAKE_C_COMPILER_LAUNCHER)" \
More information about the lede-commits
mailing list