There was an error while loading. Please reload this page.
2 parents b1dff39 + d3c91e9 commit b30a3c0Copy full SHA for b30a3c0
1 file changed
backends/apple/coreml/CMakeLists.txt
@@ -206,6 +206,14 @@ if(APPLE)
206
coremldelegate PRIVATE C10_USING_CUSTOM_GENERATED_MACROS
207
)
208
209
+ # The profiler hooks in this delegate compile only when the sdk sources below
210
+ # are also built, because they import a header that ships with them. A build
211
+ # that turns the tracer on globally without those sources would fail here, so
212
+ # keep this target out of it rather than half enabling it.
213
+ if(NOT EXECUTORCH_BUILD_DEVTOOLS)
214
+ target_compile_options(coremldelegate PRIVATE -UET_EVENT_TRACER_ENABLED)
215
+ endif()
216
+
217
if(EXECUTORCH_BUILD_DEVTOOLS)
218
target_sources(coremldelegate PRIVATE ${SDK_SOURCES} ${PROTOBUF_SOURCES})
219
target_include_directories(
0 commit comments