Skip to content

Commit 89bf180

Browse files
author
Github Executorch
committed
Update
[ghstack-poisoned]
1 parent 4d61d78 commit 89bf180

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,9 @@ target_include_directories(
487487
target_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()
490493
target_compile_options(executorch_core PUBLIC ${_common_compile_options})
491494
if(MAX_KERNEL_NUM)
492495
target_compile_definitions(
@@ -535,6 +538,9 @@ add_library(executorch ${_executorch__srcs})
535538
target_link_libraries(executorch PRIVATE executorch_core)
536539
target_include_directories(executorch PUBLIC ${_common_include_directories})
537540
target_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()
538544
target_compile_options(executorch PUBLIC ${_common_compile_options})
539545
executorch_target_link_options_shared_lib(executorch)
540546

0 commit comments

Comments
 (0)