File tree 3 files changed +5
-17
lines changed
3 files changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -91,16 +91,6 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON)
91
91
# Instead please use `find_package(executorch REQUIRED)` in the example
92
92
# directory and add a new executable in the example `CMakeLists.txt`.
93
93
94
- # _default_release_disabled_options: default value for options that should be
95
- # disabled in Release mode by default. Users can still manually enable them,
96
- # though.
97
- if (CMAKE_BUILD_TYPE STREQUAL "Release" )
98
- set (_default_release_disabled_options OFF )
99
- else ()
100
- set (_default_release_disabled_options ON )
101
- endif ()
102
-
103
-
104
94
if (NOT EXECUTORCH_ENABLE_LOGGING)
105
95
# Avoid pulling in the logging strings, which can be large. Note that this
106
96
# will set the compiler flag for all targets in this directory, and for all
@@ -110,10 +100,6 @@ endif()
110
100
111
101
add_definitions (-DET_MIN_LOG_LEVEL=${ET_MIN_LOG_LEVEL} )
112
102
113
- option (EXECUTORCH_ENABLE_PROGRAM_VERIFICATION
114
- "Build with ET_ENABLE_PROGRAM_VERIFICATION"
115
- ${_default_release_disabled_options}
116
- )
117
103
if (NOT EXECUTORCH_ENABLE_PROGRAM_VERIFICATION)
118
104
# Avoid pulling in the flatbuffer data verification logic, which can add about
119
105
# 20kB. Note that this will set the compiler flag for all targets in this
Original file line number Diff line number Diff line change @@ -29,9 +29,6 @@ function(executorch_print_configuration_summary)
29
29
message (STATUS " CMAKE_TOOLCHAIN_FILE : ${CMAKE_TOOLCHAIN_FILE} " )
30
30
message (STATUS " BUCK2 : ${BUCK2} " )
31
31
message (STATUS " PYTHON_EXECUTABLE : ${PYTHON_EXECUTABLE} " )
32
- message (STATUS " EXECUTORCH_ENABLE_PROGRAM_VERIFICATION : "
33
- "${EXECUTORCH_ENABLE_PROGRAM_VERIFICATION} "
34
- )
35
32
message (STATUS " EXECUTORCH_BUILD_ANDROID_JNI : "
36
33
"${EXECUTORCH_BUILD_ANDROID_JNI} "
37
34
)
Original file line number Diff line number Diff line change @@ -44,6 +44,11 @@ define_overridable_option(
44
44
"Build with the given ET_MIN_LOG_LEVEL value"
45
45
STRING "Info"
46
46
)
47
+ define_overridable_option(
48
+ EXECUTORCH_ENABLE_PROGRAM_VERIFICATION
49
+ "Build with ET_ENABLE_PROGRAM_VERIFICATION"
50
+ BOOL ${_is_build_type_debug}
51
+ )
47
52
48
53
# MARK: - Validations
49
54
# At this point all the options should be configured with their final value.
You can’t perform that action at this time.
0 commit comments