File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 290290 "name" : " arm-ethosu-linux" ,
291291 "displayName" : " Build ExecuTorch for Arm Ethos-U Linux" ,
292292 "inherits" : [" common" ],
293- "description" : " musl declares __assert_fail with int for line; avoid NDEBUG forward-decl mismatch in Release builds" ,
294293 "cacheVariables" : {
295- "EXECUTORCH_BUILD_ARM_ETHOSU_LINUX" : " ON" ,
296- "EXECUTORCH_BUILD_EXECUTOR_RUNNER" : " ON" ,
297- "EXECUTORCH_BUILD_KERNELS_QUANTIZED" : " ON" ,
298- "CMAKE_C_FLAGS_RELEASE" : " -UNDEBUG" ,
299- "CMAKE_CXX_FLAGS_RELEASE" : " -UNDEBUG" ,
294+ "EXECUTORCH_BUILD_PRESET_FILE" : " ${sourceDir}/tools/cmake/preset/arm_ethosu_linux.cmake" ,
300295 "CMAKE_TOOLCHAIN_FILE" : " ${sourceDir}/examples/arm/ethos-u-setup/aarch64-linux-musl-toolchain.cmake"
301296 }
302297 }
Original file line number Diff line number Diff line change 1+ # Copyright 2026 Arm Limited and/or its affiliates.
2+ #
3+ # This source code is licensed under the BSD-style license found in the
4+ # LICENSE file in the root directory of this source tree.
5+
6+ set_overridable_option (EXECUTORCH_BUILD_ARM_ETHOSU_LINUX ON )
7+ set_overridable_option (EXECUTORCH_BUILD_EXECUTOR_RUNNER ON )
8+ set_overridable_option (EXECUTORCH_BUILD_EXTENSION_EVALUE_UTIL ON )
9+ set_overridable_option (EXECUTORCH_BUILD_EXTENSION_RUNNER_UTIL ON )
10+ set_overridable_option (EXECUTORCH_BUILD_KERNELS_QUANTIZED ON )
11+
12+ set (CMAKE_C_FLAGS_RELEASE
13+ "-UNDEBUG"
14+ CACHE STRING "Avoid NDEBUG forward-decl mismatch in musl Release builds"
15+ )
16+ set (CMAKE_CXX_FLAGS_RELEASE
17+ "-UNDEBUG"
18+ CACHE STRING "Avoid NDEBUG forward-decl mismatch in musl Release builds"
19+ )
You can’t perform that action at this time.
0 commit comments