File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 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 @@ -139,6 +139,10 @@ def mps(cls) -> bool:
139
139
def xnnpack (cls ) -> bool :
140
140
return cls ._is_cmake_arg_enabled ("EXECUTORCH_BUILD_XNNPACK" , default = False )
141
141
142
+ @classmethod
143
+ def coreml (cls ) -> bool :
144
+ return cls ._is_env_enabled ("EXECUTORCH_BUILD_COREML" , default = False )
145
+
142
146
@classmethod
143
147
def training (cls ) -> bool :
144
148
return cls ._is_cmake_arg_enabled (
@@ -843,6 +847,15 @@ def get_ext_modules() -> List[Extension]:
843
847
]
844
848
)
845
849
850
+ if ShouldBuild .pybindings () or ShouldBuild .coreml ():
851
+ ext_modules .append (
852
+ BuiltExtension (
853
+ src = "coreml_inmemoryfs_pybinding.*" ,
854
+ src_dir = "backends/apple/coreml" ,
855
+ modpath = "executorch.backends.apple.coreml.inmemoryfs" ,
856
+ )
857
+ )
858
+
846
859
if ShouldBuild .pybindings ():
847
860
ext_modules .append (
848
861
# Install the prebuilt pybindings extension wrapper for the runtime,
You can’t perform that action at this time.
0 commit comments