Skip to content

Commit a8a26ce

Browse files
authored
Arm backend: fix executor runner PTE macro handling (pytorch#20030)
- Avoid defining ET_COMPILED_PTE when ET_MODEL_PTE_ADDR is used so the build system does not create mutually exclusive runner modes. cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani Signed-off-by: Xingguo Li <xingguo.li@arm.com>
1 parent 19ffa55 commit a8a26ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/arm/executor_runner/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ if(SEMIHOSTING)
565565
target_compile_definitions(arm_executor_runner PUBLIC SEMIHOSTING)
566566
endif()
567567

568-
if(ET_PTE_FILE_PATH)
568+
if(NOT ET_MODEL_PTE_ADDR AND NOT "${ET_PTE_FILE_PATH}" STREQUAL "")
569569
target_compile_definitions(arm_executor_runner PUBLIC ET_COMPILED_PTE)
570570
endif()
571571

0 commit comments

Comments
 (0)