Commit 1298021 1 parent 815f657 commit 1298021 Copy full SHA for 1298021
File tree 1 file changed +11
-1
lines changed
config/esp32/components/chip
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,16 @@ if (CONFIG_OPENTHREAD_ENABLED)
39
39
list (APPEND CHIP_REQURIE_COMPONENTS openthread)
40
40
endif ()
41
41
42
+ if (NOT CMAKE_BUILD_EARLY_EXPANSION)
43
+ if (CONFIG_COMPILER_OPTIMIZATION_DEFAULT OR CONFIG_COMPILER_OPTIMIZATION_NONE)
44
+ set (is_debug TRUE )
45
+ else ()
46
+ if (NOT CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE)
47
+ message (FATAL_ERROR "CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE shall be set" )
48
+ endif ()
49
+ endif ()
50
+ endif ()
51
+
42
52
idf_component_register(SRCS chip.c chip.cpp
43
53
PRIV_REQUIRES ${CHIP_REQURIE_COMPONENTS} )
44
54
@@ -62,7 +72,7 @@ chip_gn_arg_append("esp32_ar" "\"${CMAKE_AR}\"")
62
72
chip_gn_arg_append("esp32_cc" "\" ${CMAKE_C_COMPILER} \" " )
63
73
chip_gn_arg_append("esp32_cxx" "\" ${CMAKE_CXX_COMPILER} \" " )
64
74
chip_gn_arg_append("esp32_cpu" "\" esp32\" " )
65
- chip_gn_arg_bool("is_debug" is_debug)
75
+ chip_gn_arg_bool("is_debug" ${ is_debug} )
66
76
67
77
if (CONFIG_BT_ENABLED)
68
78
chip_gn_arg_append("chip_config_network_layer_ble" "true" )
You can’t perform that action at this time.
0 commit comments