Skip to content

Commit 76eeb10

Browse files
committed
Arm backend: Fix Direct Drive release build
This got mixed up when moving things into a preset cmake file and the -UNDEBUG that is needed to build Release never got set. Signed-off-by: per.held@arm.com Change-Id: I8022efa315c9f970a29b6d6bc4a9bee0be091f8b
1 parent b778155 commit 76eeb10

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tools/cmake/preset/arm_ethosu_linux.cmake

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ set_overridable_option(EXECUTORCH_BUILD_EXTENSION_EVALUE_UTIL ON)
99
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_RUNNER_UTIL ON)
1010
set_overridable_option(EXECUTORCH_BUILD_KERNELS_QUANTIZED ON)
1111

12+
set(_arm_ethosu_linux_c_flags_release "${CMAKE_C_FLAGS_RELEASE} -UNDEBUG")
1213
set(CMAKE_C_FLAGS_RELEASE
13-
"-UNDEBUG"
14+
"${_arm_ethosu_linux_c_flags_release}"
1415
CACHE STRING "Avoid NDEBUG forward-decl mismatch in musl Release builds"
16+
FORCE
1517
)
18+
set(_arm_ethosu_linux_cxx_flags_release "${CMAKE_CXX_FLAGS_RELEASE} -UNDEBUG")
1619
set(CMAKE_CXX_FLAGS_RELEASE
17-
"-UNDEBUG"
20+
"${_arm_ethosu_linux_cxx_flags_release}"
1821
CACHE STRING "Avoid NDEBUG forward-decl mismatch in musl Release builds"
22+
FORCE
1923
)

0 commit comments

Comments
 (0)