Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tools/cmake/preset/arm_ethosu_linux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ set_overridable_option(EXECUTORCH_BUILD_EXTENSION_EVALUE_UTIL ON)
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_RUNNER_UTIL ON)
set_overridable_option(EXECUTORCH_BUILD_KERNELS_QUANTIZED ON)

set(_arm_ethosu_linux_c_flags_release "${CMAKE_C_FLAGS_RELEASE} -UNDEBUG")
set(CMAKE_C_FLAGS_RELEASE
"-UNDEBUG"
"${_arm_ethosu_linux_c_flags_release}"
CACHE STRING "Avoid NDEBUG forward-decl mismatch in musl Release builds"
FORCE
)
set(_arm_ethosu_linux_cxx_flags_release "${CMAKE_CXX_FLAGS_RELEASE} -UNDEBUG")
set(CMAKE_CXX_FLAGS_RELEASE
"-UNDEBUG"
"${_arm_ethosu_linux_cxx_flags_release}"
CACHE STRING "Avoid NDEBUG forward-decl mismatch in musl Release builds"
FORCE
)
Loading