File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -485,7 +485,7 @@ if(MAX_KERNEL_NUM)
485
485
)
486
486
endif ()
487
487
488
- if (EXECUTORCH_BUILD_PYBIND )
488
+ if (EXECUTORCH_BUILD_PYBIND AND APPLE )
489
489
# shared version
490
490
add_library (
491
491
executorch_no_prim_ops_shared SHARED ${_executorch_no_prim_ops__srcs}
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ function(gen_custom_ops_aot_lib)
150
150
include (${EXECUTORCH_ROOT} /build/Utils.cmake )
151
151
152
152
target_link_options_shared_lib (${GEN_LIB_NAME} )
153
- if (EXECUTORCH_BUILD_PYBIND )
153
+ if (EXECUTORCH_BUILD_PYBIND AND APPLE )
154
154
target_link_libraries (${GEN_LIB_NAME} PRIVATE executorch_no_prim_ops_shared )
155
155
target_link_options (${GEN_LIB_NAME} PRIVATE -undefined dynamic_lookup )
156
156
else ()
You can’t perform that action at this time.
0 commit comments