File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ endif()
2525
2626option (COREML_BUILD_EXECUTOR_RUNNER "Build CoreML executor runner." OFF )
2727
28+ set (CMAKE_OSX_DEPLOYMENT_TARGET 10.15)
29+
2830# inmemoryfs sources
2931set (INMEMORYFS_SOURCES
3032 runtime/inmemoryfs/inmemory_filesystem.cpp
@@ -223,7 +225,10 @@ if(EXECUTORCH_BUILD_COREML)
223225
224226 pybind11_add_module(executorchcoreml SHARED runtime/inmemoryfs/inmemory_filesystem_py.cpp)
225227
226- target_compile_options (executorchcoreml PRIVATE -mmacosx-version -min=10.15 -g)
228+ target_compile_options (executorchcoreml PRIVATE -mmacosx-version -min=${CMAKE_OSX_DEPLOYMENT_TARGET} )
229+ if (CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo" )
230+ target_compile_options (executorchcoreml PRIVATE -g)
231+ endif ()
227232 target_link_libraries (executorchcoreml PRIVATE coreml_util)
228233 target_link_libraries (executorchcoreml PRIVATE coreml_inmemoryfs)
229234endif ()
You can’t perform that action at this time.
0 commit comments