Skip to content

Commit 18e56a4

Browse files
committed
Revert "attempt to fix ci"
This reverts commit a03a108.
1 parent a03a108 commit 18e56a4

File tree

5 files changed

+4
-18
lines changed

5 files changed

+4
-18
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,3 @@
6767
[submodule "shim"]
6868
path = shim
6969
url = https://github.com/facebook/buck2-shims-meta
70-
[submodule "backends/apple/coreml/third-party/json"]
71-
path = backends/apple/coreml/third-party/json
72-
url = https://github.com/nlohmann/json.git

backends/apple/coreml/.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ runtime/inmemoryfs/build/
2020
runtime/test/models/
2121
runtime/sdk/format/
2222
runtime/include/executorch/
23-
third-party/coremltools/
24-
third-party/nlohmann_json/
23+
third-party/
2524

2625
xcode-build/
2726

backends/apple/coreml/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ option(COREML_BUILD_EXECUTOR_RUNNER "Build CoreML executor runner." OFF)
2929
set(INMEMORYFS_SOURCES
3030
runtime/inmemoryfs/inmemory_filesystem.cpp
3131
runtime/inmemoryfs/inmemory_filesystem_utils.mm
32-
runtime/inmemoryfs/inmemory_filesystem_utils.cpp
3332
runtime/inmemoryfs/memory_buffer.cpp
3433
runtime/inmemoryfs/memory_stream.cpp
3534
runtime/inmemoryfs/reversed_memory_stream.cpp
@@ -123,25 +122,14 @@ target_sources(coreml_util PRIVATE ${UTIL_SOURCES})
123122
target_include_directories(coreml_util
124123
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/runtime/util
125124
)
126-
set(TARGET coreml_util
127-
APPEND_STRING PROPERTY COMPILE_FLAGS "-x objective-c++"
128-
)
129-
130-
# nlohmann/json
131-
set(JSON_BuildTests OFF CACHE INTERNAL "")
132-
add_subdirectory(third-party/json)
133125

134126
# CoreML inmemoryfs
135127
add_library(coreml_inmemoryfs)
136128
target_sources(coreml_inmemoryfs PRIVATE ${INMEMORYFS_SOURCES})
137129
target_include_directories(coreml_inmemoryfs
138130
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/runtime/inmemoryfs
139131
)
140-
set(TARGET coreml_inmemoryfs
141-
APPEND_STRING PROPERTY COMPILE_FLAGS "-x objective-c++"
142-
)
143132
target_link_libraries(coreml_inmemoryfs PRIVATE coreml_util)
144-
target_link_libraries(coreml_inmemoryfs PRIVATE nlohmann_json::nlohmann_json)
145133

146134
# Define the delegate library
147135
add_library(coremldelegate)

backends/apple/coreml/scripts/install_requirements.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ PROTOBUF_FILES_DIR_PATH="$COREMLTOOLS_DIR_PATH/build/mlmodel/format/"
2020

2121
cd "$EXECUTORCH_ROOT_PATH"
2222

23+
rm -rf "$COREML_DIR_PATH/third-party"
24+
mkdir "$COREML_DIR_PATH/third-party"
25+
2326
echo "${green}ExecuTorch: Cloning coremltools."
2427
git clone --depth 1 --branch 8.1 "https://github.com/apple/coremltools.git" $COREMLTOOLS_DIR_PATH
2528
cd $COREMLTOOLS_DIR_PATH
Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)