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)
811811
812812 if (EXECUTORCH_BUILD_COREML)
813813 list (APPEND _dep_libs coremldelegate)
814+ list (APPEND _dep_libs coreml_inmemoryfs_pybinding)
814815 endif ()
815816
816817 if (EXECUTORCH_BUILD_MPS)
@@ -935,6 +936,7 @@ if(EXECUTORCH_BUILD_EXECUTOR_RUNNER)
935936
936937 if (EXECUTORCH_BUILD_COREML)
937938 list (APPEND _executor_runner_libs coremldelegate)
939+ list (APPEND _executor_runner_libs coreml_inmemoryfs_pybinding)
938940 endif ()
939941
940942 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:
139139 def xnnpack (cls ) -> bool :
140140 return cls ._is_cmake_arg_enabled ("EXECUTORCH_BUILD_XNNPACK" , default = False )
141141
142+ @classmethod
143+ def coreml (cls ) -> bool :
144+ return cls ._is_env_enabled ("EXECUTORCH_BUILD_COREML" , default = False )
145+
142146 @classmethod
143147 def training (cls ) -> bool :
144148 return cls ._is_cmake_arg_enabled (
@@ -843,6 +847,15 @@ def get_ext_modules() -> List[Extension]:
843847 ]
844848 )
845849
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+
846859 if ShouldBuild .pybindings ():
847860 ext_modules .append (
848861 # Install the prebuilt pybindings extension wrapper for the runtime,
You can’t perform that action at this time.
0 commit comments