File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,11 @@ if(NOT CMAKE_CXX_STANDARD)
20
20
endif ()
21
21
22
22
if (NOT FLATCC_EXECUTABLE)
23
- set (FLATCC_EXECUTABLE ${_flatcc_source_dir} /bin/flatcc)
23
+ if (WIN32 )
24
+ set (FLATCC_EXECUTABLE ${_flatcc_source_dir} /bin/${CMAKE_BUILD_TYPE} /flatcc)
25
+ else ()
26
+ set (FLATCC_EXECUTABLE ${_flatcc_source_dir} /bin/flatcc)
27
+ endif ()
24
28
endif ()
25
29
26
30
# Source root directory for executorch.
@@ -159,6 +163,12 @@ file(MAKE_DIRECTORY
159
163
${_program_schema__include_dir} /executorch/devtools/bundled_program
160
164
)
161
165
166
+ if (WIN32 )
167
+ set (RM_COMMAND rmdir /s /q)
168
+ else ()
169
+ set (RM_COMMAND rm -rf)
170
+ endif ()
171
+
162
172
add_custom_command (
163
173
OUTPUT ${_etdump_schema__outputs}
164
174
COMMAND
@@ -168,11 +178,13 @@ add_custom_command(
168
178
${FLATCC_EXECUTABLE} -cwr -o
169
179
${_program_schema__include_dir} /executorch/devtools/etdump
170
180
${_etdump_schema__srcs}
171
- COMMAND rm -rf ${_etdump_schema_cleanup_paths}
181
+ COMMAND ${RM_COMMAND} ${_etdump_schema_cleanup_paths}
172
182
DEPENDS ${_etdump_schema_gen_dep}
173
183
COMMENT "Generating etdump headers"
174
184
)
175
185
186
+ unset (RM_COMMAND)
187
+
176
188
add_library (
177
189
etdump ${CMAKE_CURRENT_SOURCE_DIR} /etdump/etdump_flatcc.cpp
178
190
${CMAKE_CURRENT_SOURCE_DIR} /etdump/emitter.cpp
You can’t perform that action at this time.
0 commit comments