File tree Expand file tree Collapse file tree 7 files changed +10
-10
lines changed Expand file tree Collapse file tree 7 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -705,7 +705,7 @@ if(EXECUTORCH_BUILD_EXECUTOR_RUNNER)
705
705
endif ()
706
706
707
707
add_executable (executor_runner ${_executor_runner__srcs} )
708
- if (CMAKE_BUILD_TYPE STREQUAL "Release " )
708
+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug " )
709
709
if (APPLE )
710
710
target_link_options (executor_runner PRIVATE "LINKER:-dead_strip" )
711
711
else ()
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
60
60
add_link_options ("-flto=auto" )
61
61
endif ()
62
62
63
- if (CMAKE_BUILD_TYPE STREQUAL "Release " )
63
+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug " )
64
64
# strip symbols
65
65
add_link_options ("-s" )
66
66
@@ -259,7 +259,7 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64")
259
259
pybind11_strip (PyQnnWrapperAdaptor )
260
260
endif ()
261
261
262
- if (CMAKE_BUILD_TYPE STREQUAL "Release " )
262
+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug " )
263
263
# need to allow exceptions in pybind
264
264
set (_pybind_compile_options -Wno-deprecated-declarations -fPIC -frtti
265
265
-fexceptions
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ if(ANDROID)
209
209
endif ()
210
210
211
211
add_executable (llama_main ${_srcs} )
212
- if (CMAKE_BUILD_TYPE STREQUAL "Release " )
212
+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug " )
213
213
if (APPLE )
214
214
target_link_options (llama_main PRIVATE "LINKER:-dead_strip" )
215
215
else ()
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ list(APPEND _common_include_directories ${stb_SOURCE_DIR}
197
197
)
198
198
199
199
add_executable (llava_main ${_srcs} )
200
- if (CMAKE_BUILD_TYPE STREQUAL "Release " )
200
+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug " )
201
201
if (APPLE )
202
202
target_link_options (llava_main PRIVATE "LINKER:-dead_strip,-s" )
203
203
else ()
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ list(TRANSFORM _executor_runner__srcs PREPEND "${EXECUTORCH_ROOT}/")
151
151
# link to
152
152
#
153
153
add_executable (selective_build_test ${_executor_runner__srcs} )
154
- if (CMAKE_BUILD_TYPE EQUAL "Release " )
154
+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug " )
155
155
target_link_options (selective_build_test PRIVATE "LINKER:--gc-sections" )
156
156
endif ()
157
157
target_link_libraries (
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ list(TRANSFORM _size_test__srcs PREPEND "${EXECUTORCH_ROOT}/")
52
52
# when we cross compile to ios
53
53
add_executable (size_test ${_size_test__srcs} )
54
54
target_link_libraries (size_test executorch )
55
- if (CMAKE_BUILD_TYPE EQUAL "Release " )
55
+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug " )
56
56
target_link_options (size_test PRIVATE "LINKER:--gc-sections" )
57
57
endif ()
58
58
@@ -64,7 +64,7 @@ target_link_options_shared_lib(portable_ops_lib)
64
64
target_link_libraries (
65
65
size_test_all_ops executorch portable_ops_lib portable_kernels
66
66
)
67
- if (CMAKE_BUILD_TYPE EQUAL "Release " )
67
+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug " )
68
68
target_link_options (size_test_all_ops PRIVATE "LINKER:--gc-sections" )
69
69
endif ()
70
70
@@ -76,7 +76,7 @@ add_executable(size_test_all_optimized_ops ${_size_test__srcs})
76
76
target_link_options_shared_lib (optimized_native_cpu_ops_lib )
77
77
target_link_libraries (
78
78
size_test_all_optimized_ops executorch optimized_native_cpu_ops_lib )
79
- if (CMAKE_BUILD_TYPE EQUAL "Release " )
79
+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug " )
80
80
target_link_options (size_test_all_optimized_ops PRIVATE "LINKER:--gc-sections" )
81
81
endif ()
82
82
endif ()
Original file line number Diff line number Diff line change 4
4
# This source code is licensed under the BSD-style license found in the
5
5
# LICENSE file in the root directory of this source tree.
6
6
7
- if (CMAKE_BUILD_TYPE STREQUAL "Release " )
7
+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug " )
8
8
set (_is_build_type_release ON )
9
9
set (_is_build_type_debug OFF )
10
10
else ()
You can’t perform that action at this time.
0 commit comments