File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,7 @@ if(EXECUTORCH_USE_TIKTOKEN)
92
92
# find RE2 for tokenizer
93
93
set (ABSL_ENABLE_INSTALL ON )
94
94
set (ABSL_PROPAGATE_CXX_STD ON )
95
- set (_pic_flag
96
- ${CMAKE_POSITION_INDEPENDENT_CODE} )
95
+ set (_pic_flag ${CMAKE_POSITION_INDEPENDENT_CODE} )
97
96
set (CMAKE_POSITION_INDEPENDENT_CODE ON )
98
97
add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /third-party/abseil-cpp )
99
98
add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /third-party/re2 )
@@ -169,6 +168,19 @@ if(TARGET qnn_executorch_backend)
169
168
target_link_options_shared_lib (qnn_executorch_backend )
170
169
endif ()
171
170
171
+ # MPS backend
172
+ if (TARGET mpsdelegate )
173
+ list (
174
+ APPEND
175
+ link_libraries
176
+ mpsdelegate
177
+ "-framework Foundation"
178
+ "-weak_framework MetalPerformanceShaders"
179
+ "-weak_framework MetalPerformanceShadersGraph"
180
+ "-weak_framework Metal" )
181
+ target_link_options_shared_lib (mpsdelegate )
182
+ endif ()
183
+
172
184
# This one is needed for cpuinfo where it uses android specific log lib
173
185
if (ANDROID )
174
186
list (APPEND link_libraries log )
You can’t perform that action at this time.
0 commit comments