File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -487,6 +487,9 @@ target_include_directories(
487487target_compile_definitions (
488488 executorch_core PUBLIC C10_USING_CUSTOM_GENERATED_MACROS
489489)
490+ if (NOT EXECUTORCH_ENABLE_LOGGING)
491+ target_compile_definitions (executorch_core PUBLIC ET_LOG_ENABLED=0 )
492+ endif ()
490493target_compile_options (executorch_core PUBLIC ${_common_compile_options} )
491494if (MAX_KERNEL_NUM)
492495 target_compile_definitions (
@@ -535,6 +538,9 @@ add_library(executorch ${_executorch__srcs})
535538target_link_libraries (executorch PRIVATE executorch_core )
536539target_include_directories (executorch PUBLIC ${_common_include_directories} )
537540target_compile_definitions (executorch PUBLIC C10_USING_CUSTOM_GENERATED_MACROS )
541+ if (NOT EXECUTORCH_ENABLE_LOGGING)
542+ target_compile_definitions (executorch PUBLIC ET_LOG_ENABLED=0 )
543+ endif ()
538544target_compile_options (executorch PUBLIC ${_common_compile_options} )
539545executorch_target_link_options_shared_lib (executorch )
540546
You can’t perform that action at this time.
0 commit comments