File tree Expand file tree Collapse file tree 10 files changed +23
-42
lines changed Expand file tree Collapse file tree 10 files changed +23
-42
lines changed Original file line number Diff line number Diff line change @@ -698,7 +698,7 @@ if(EXECUTORCH_BUILD_EXECUTOR_RUNNER)
698
698
endif ()
699
699
700
700
if (EXECUTORCH_ENABLE_EVENT_TRACER )
701
- list (APPEND _executor_runner_libs etdump flatccrt )
701
+ list (APPEND _executor_runner_libs etdump )
702
702
endif ()
703
703
704
704
if (EXECUTORCH_BUILD_COREML )
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ if(EXECUTORCH_CADENCE_CPU_RUNNER)
67
67
extension_data_loader
68
68
bundled_program
69
69
cadence_ops_lib
70
- flatccrt
71
70
)
72
71
endif ()
73
72
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ add_library(
48
48
target_link_libraries (
49
49
etdump
50
50
PUBLIC
51
- flatccrt
51
+ ${FLATCCRT_LIB}
52
52
PRIVATE
53
53
executorch
54
54
)
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ et_cxx_test(
26
26
EXTRA_LIBS
27
27
bundled_program
28
28
etdump
29
- flatccrt
30
29
)
31
30
target_include_directories (
32
31
sdk_etdump_tests PRIVATE ${CMAKE_INSTALL_PREFIX} /sdk/include
Original file line number Diff line number Diff line change @@ -97,12 +97,6 @@ if(NOT CMAKE_TOOLCHAIN_FILE MATCHES ".*(iOS|ios\.toolchain)\.cmake$")
97
97
list (TRANSFORM _mps_executor_runner__srcs PREPEND "${EXECUTORCH_ROOT} /" )
98
98
add_executable (mps_executor_runner ${_mps_executor_runner__srcs} )
99
99
100
- if (CMAKE_BUILD_TYPE MATCHES "Debug" )
101
- set (FLATCC_LIB flatccrt_d )
102
- else ()
103
- set (FLATCC_LIB flatccrt )
104
- endif ()
105
-
106
100
if (CMAKE_BUILD_TYPE MATCHES "Debug" )
107
101
target_link_options (mps_executor_runner PUBLIC -fsanitize=undefined )
108
102
endif ()
@@ -113,7 +107,6 @@ if(NOT CMAKE_TOOLCHAIN_FILE MATCHES ".*(iOS|ios\.toolchain)\.cmake$")
113
107
executorch
114
108
gflags
115
109
etdump
116
- ${FLATCC_LIB}
117
110
mpsdelegate
118
111
mps_portable_ops_lib
119
112
${mps_executor_runner_libs}
Original file line number Diff line number Diff line change @@ -576,23 +576,7 @@ if(EXECUTORCH_ENABLE_EVENT_TRACER)
576
576
"${ET_BUILD_DIR_PATH} /lib/libetdump.a"
577
577
)
578
578
579
- if (CMAKE_BUILD_TYPE MATCHES "Debug" )
580
- set (FLATCCRT_LIB flatccrt_d )
581
- else ()
582
- set (FLATCCRT_LIB flatccrt )
583
- endif ()
584
-
585
- add_library (${FLATCCRT_LIB} STATIC IMPORTED )
586
- set_property (
587
- TARGET ${FLATCCRT_LIB}
588
- PROPERTY IMPORTED_LOCATION
589
- "${ET_BUILD_DIR_PATH} /lib/lib${FLATCCRT_LIB} .a"
590
- )
591
-
592
- list (APPEND arm_executor_runner_link
593
- etdump
594
- ${FLATCCRT_LIB}
595
- )
579
+ list (APPEND arm_executor_runner_link etdump )
596
580
endif ()
597
581
598
582
if (ET_BUNDLE_IO )
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ target_link_libraries(
60
60
etdump
61
61
extension_data_loader
62
62
bundled_program
63
- flatccrt
64
63
portable_ops_lib
65
64
portable_kernels
66
65
)
Original file line number Diff line number Diff line change @@ -19,8 +19,11 @@ target_include_directories(
19
19
qnn_executor_runner PUBLIC ${_common_include_directories}
20
20
)
21
21
target_link_libraries (
22
- qnn_executor_runner qnn_executorch_backend full_portable_ops_lib etdump
23
- ${FLATCCRT_LIB} gflags
22
+ qnn_executor_runner
23
+ qnn_executorch_backend
24
+ full_portable_ops_lib
25
+ etdump
26
+ gflags
24
27
)
25
28
set_target_properties (
26
29
qnn_executor_runner PROPERTIES LINK_FLAGS "-Wl,-rpath='$ORIGIN'"
Original file line number Diff line number Diff line change @@ -89,7 +89,9 @@ add_subdirectory(flatcc)
89
89
#
90
90
# Learn more: https://github.com/pytorch/executorch/pull/2467
91
91
set_property (TARGET flatccrt PROPERTY POSITION_INDEPENDENT_CODE ON )
92
- install (
93
- TARGETS flatccrt
94
- DESTINATION ${CMAKE_BINARY_DIR} /lib
95
- )
92
+ # flatcc has a special debug target
93
+ if (CMAKE_BUILD_TYPE MATCHES "Release" )
94
+ set (FLATCCRT_LIB flatccrt CACHE STRING "flatccrt library" )
95
+ else ()
96
+ set (FLATCCRT_LIB flatccrt_d CACHE STRING "flatccrt library" )
97
+ endif ()
Original file line number Diff line number Diff line change @@ -56,18 +56,11 @@ set(EXECUTORCH_FOUND ON)
56
56
57
57
target_link_libraries (executorch INTERFACE executorch_core )
58
58
59
- if (CMAKE_BUILD_TYPE MATCHES "Debug" )
60
- set (FLATCCRT_LIB flatccrt_d )
61
- else ()
62
- set (FLATCCRT_LIB flatccrt )
63
- endif ()
64
-
65
59
set (lib_list
66
60
etdump
67
61
bundled_program
68
62
extension_data_loader
69
63
extension_flat_tensor
70
- ${FLATCCRT_LIB}
71
64
coreml_util
72
65
coreml_inmemoryfs
73
66
coremldelegate
@@ -154,6 +147,15 @@ if(TARGET coremldelegate)
154
147
)
155
148
endif ()
156
149
150
+ if (TARGET etdump )
151
+ if (CMAKE_BUILD_TYPE MATCHES "Release" )
152
+ set (FLATCCRT_LIB flatccrt )
153
+ else ()
154
+ set (FLATCCRT_LIB flatccrt_d )
155
+ endif ()
156
+ set_target_properties (etdump PROPERTIES INTERFACE_LINK_LIBRARIES "${FLATCCRT_LIB} ;executorch" )
157
+ endif ()
158
+
157
159
if (TARGET optimized_native_cpu_ops_lib )
158
160
if (TARGET optimized_portable_kernels )
159
161
set (_maybe_optimized_portable_kernels_lib optimized_portable_kernels )
You can’t perform that action at this time.
0 commit comments