Skip to content

Commit

Permalink
Merge branch 'v1.2/cherry-pick-30763' into 'v1.2-branch'
Browse files Browse the repository at this point in the history
[cherry-pick][ESP32] Fix adding NDEBUG flag to CPPFLAGS (project-chip#30763) into v1.2

See merge request espressif/connectedhomeip!11
  • Loading branch information
chshu committed Mar 28, 2024
2 parents c44292f + f03e897 commit 4561c2c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions config/esp32/components/chip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,9 @@ if(NOT "${IDF_TARGET}" STREQUAL "esp32h2")
endif()

if (NOT CMAKE_BUILD_EARLY_EXPANSION)
if (CONFIG_COMPILER_OPTIMIZATION_DEFAULT OR CONFIG_COMPILER_OPTIMIZATION_NONE)
if (CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE)
set(is_debug TRUE)
else()
if (NOT CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE)
message(FATAL_ERROR "CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE shall be set")
endif()
set(is_debug FALSE)
endif()
endif()
Expand Down

0 comments on commit 4561c2c

Please sign in to comment.