Skip to content

Commit a0227a1

Browse files
committed
Arm backend: Add arm-ethosu-linux preset file
Add arm-ethosu-linux preset file and wire CMake preset to it Signed-off-by: per.held@arm.com Change-Id: Ice800b6fe0eb7befbdd62509cd7186f2977cba25
1 parent 355f323 commit a0227a1

2 files changed

Lines changed: 20 additions & 6 deletions

File tree

CMakePresets.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -290,13 +290,8 @@
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
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
)

0 commit comments

Comments
 (0)