File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -811,6 +811,7 @@ if(EXECUTORCH_BUILD_PYBIND)
811
811
812
812
if (EXECUTORCH_BUILD_COREML)
813
813
list (APPEND _dep_libs coremldelegate)
814
+ list (APPEND _dep_libs coreml_inmemoryfs_pybinding)
814
815
endif ()
815
816
816
817
if (EXECUTORCH_BUILD_MPS)
@@ -935,6 +936,7 @@ if(EXECUTORCH_BUILD_EXECUTOR_RUNNER)
935
936
936
937
if (EXECUTORCH_BUILD_COREML)
937
938
list (APPEND _executor_runner_libs coremldelegate)
939
+ list (APPEND _executor_runner_libs coreml_inmemoryfs_pybinding)
938
940
endif ()
939
941
940
942
add_executable (executor_runner ${_executor_runner__srcs} )
Original file line number Diff line number Diff line change @@ -135,6 +135,10 @@ def mps(cls) -> bool:
135
135
def xnnpack (cls ) -> bool :
136
136
return cls ._is_cmake_arg_enabled ("EXECUTORCH_BUILD_XNNPACK" , default = False )
137
137
138
+ @classmethod
139
+ def coreml (cls ) -> bool :
140
+ return cls ._is_env_enabled ("EXECUTORCH_BUILD_COREML" , default = False )
141
+
138
142
@classmethod
139
143
def training (cls ) -> bool :
140
144
return cls ._is_cmake_arg_enabled (
@@ -833,6 +837,15 @@ def get_ext_modules() -> List[Extension]:
833
837
]
834
838
)
835
839
840
+ if ShouldBuild .pybindings () or ShouldBuild .coreml ():
841
+ ext_modules .append (
842
+ BuiltExtension (
843
+ src = "coreml_inmemoryfs_pybinding.*" ,
844
+ src_dir = "backends/apple/coreml" ,
845
+ modpath = "executorch.backends.apple.coreml.inmemoryfs" ,
846
+ )
847
+ )
848
+
836
849
if ShouldBuild .pybindings ():
837
850
ext_modules .append (
838
851
# Install the prebuilt pybindings extension wrapper for the runtime,
You can’t perform that action at this time.
0 commit comments