Skip to content

Commit e56f8d2

Browse files
committed
wip ∫ May 15, 2025 12:13:00 PM ∫ bf0af5e
1 parent 879235b commit e56f8d2

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ if(EXECUTORCH_BUILD_EXECUTOR_RUNNER)
695695
endif()
696696

697697
if(EXECUTORCH_ENABLE_EVENT_TRACER)
698-
list(APPEND _executor_runner_libs etdump flatccrt)
698+
list(APPEND _executor_runner_libs etdump)
699699
endif()
700700

701701
if(EXECUTORCH_BUILD_COREML)

third-party/CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,12 @@ set(FLATCC_RTONLY ON CACHE BOOL "")
8181
set(FLATCC_TEST OFF CACHE BOOL "")
8282
set(FLATCC_REFLECTION OFF CACHE BOOL "")
8383
set(FLATCC_DEBUG_CLANG_SANITIZE OFF CACHE BOOL "")
84-
set(FLATCC_INSTALL OFF CACHE BOOL "")
84+
set(FLATCC_INSTALL ON CACHE BOOL "")
85+
set(FLATCC_INSTALL_LIB "${CMAKE_CURRENT_BINARY_DIR}/flatcc/lib" CACHE STRING "")
8586
add_subdirectory(flatcc)
8687
# Fix for "relocation R_X86_64_32 against `.rodata' can not be used when making
8788
# a shared object; recompile with -fPIC" when building on some x86 linux
8889
# systems.
8990
#
9091
# Learn more: https://github.com/pytorch/executorch/pull/2467
9192
set_property(TARGET flatccrt PROPERTY POSITION_INDEPENDENT_CODE ON)
92-
install(
93-
TARGETS flatccrt
94-
DESTINATION ${CMAKE_BINARY_DIR}/lib
95-
)

0 commit comments

Comments
 (0)