Skip to content

Commit c5e0ff5

Browse files
shoumikhinfacebook-github-bot
authored andcommitted
Fix executorch_no_prim_ops_shared linkage. (#4185)
Summary: Pull Request resolved: #4185 To be re-exported Differential Revision: D59536657
1 parent 2d9c6b5 commit c5e0ff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/Codegen.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function(gen_custom_ops_aot_lib)
150150
include(${EXECUTORCH_ROOT}/build/Utils.cmake)
151151

152152
target_link_options_shared_lib(${GEN_LIB_NAME})
153-
if(APPLE)
153+
if(EXECUTORCH_BUILD_PYBIND)
154154
target_link_libraries(${GEN_LIB_NAME} PRIVATE executorch_no_prim_ops_shared)
155155
target_link_options(${GEN_LIB_NAME} PRIVATE -undefined dynamic_lookup)
156156
else()

0 commit comments

Comments
 (0)