Skip to content

Commit 7caeb94

Browse files
author
Github Executorch
committed
build_size_test appears to be working now
1 parent 2eac4cf commit 7caeb94

File tree

3 files changed

+4
-50
lines changed

3 files changed

+4
-50
lines changed

.github/workflows/trunk.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,11 @@ jobs:
297297
arm-zephyr-eabi-c++ --version
298298
zephyr_preset=tools/cmake/preset/zephyr.cmake
299299
zephyr_preset=$(realpath ${zephyr_preset})
300+
toolchain_cmake=examples/arm/ethos-u-setup/arm-zephyr-eabi-gcc.cmake
301+
toolchain_cmake=$(realpath ${toolchain_cmake})
300302
301303
# Build and test size test
302-
bash test/build_size_test.sh "-DEXECUTORCH_BUILD_PRESET_FILE=${zephyr_preset}"
304+
bash test/build_size_test.sh "-DEXECUTORCH_BUILD_PRESET_FILE=${zephyr_preset} -DCMAKE_TOOLCHAIN_FILE=${toolchain_cmake}"
303305
elf="cmake-out/test/size_test"
304306
305307
# Dump basic info

runtime/platform/default/zephyr.cpp

Lines changed: 0 additions & 47 deletions
This file was deleted.

tools/cmake/preset/zephyr.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ set_overridable_option(CMAKE_TOOLCHAIN_FILE "${PROJECT_SOURC
1313
set_overridable_option(EXECUTORCH_ENABLE_LOGGING ON)
1414
set_overridable_option(EXECUTORCH_BUILD_COREML OFF)
1515
set_overridable_option(EXECUTORCH_FLATBUFFERS_MAX_ALIGNMENT 1024)
16-
set(EXECUTORCH_PAL_DEFAULT minimal)
17-
#set(EXECUTORCH_PAL_DEFAULT_FILE_PATH "${PROJECT_SOURCE_DIR}/runtime/platform/default/zephyr.cpp")
16+
set_overridable_option(EXECUTORCH_PAL_DEFAULT minimal)
1817
set_overridable_option(EXECUTORCH_LOG_LEVEL Info)
1918
set_overridable_option(EXECUTORCH_ENABLE_PROGRAM_VERIFICATION OFF)
2019
set_overridable_option(EXECUTORCH_ENABLE_EVENT_TRACER OFF)

0 commit comments

Comments
 (0)