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 @@ -694,7 +694,7 @@ if(EXECUTORCH_BUILD_EXECUTOR_RUNNER)
694694 endif ()
695695
696696 add_executable (executor_runner ${_executor_runner__srcs} )
697- if (CMAKE_BUILD_TYPE STREQUAL "Release " )
697+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug " )
698698 if (APPLE )
699699 target_link_options (executor_runner PRIVATE "LINKER:-dead_strip" )
700700 else ()
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
6060 add_link_options ("-flto=auto" )
6161endif ()
6262
63- if (CMAKE_BUILD_TYPE STREQUAL "Release " )
63+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug " )
6464 # strip symbols
6565 add_link_options ("-s" )
6666
@@ -259,7 +259,7 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64")
259259 pybind11_strip(PyQnnWrapperAdaptor)
260260 endif ()
261261
262- if (CMAKE_BUILD_TYPE STREQUAL "Release " )
262+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug " )
263263 # need to allow exceptions in pybind
264264 set (_pybind_compile_options -Wno-deprecated-declarations -fPIC -frtti
265265 -fexceptions
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ if(ANDROID)
209209endif ()
210210
211211add_executable (llama_main ${_srcs} )
212- if (CMAKE_BUILD_TYPE STREQUAL "Release " )
212+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug " )
213213 if (APPLE )
214214 target_link_options (llama_main PRIVATE "LINKER:-dead_strip" )
215215 else ()
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ list(APPEND _common_include_directories ${stb_SOURCE_DIR}
197197)
198198
199199add_executable (llava_main ${_srcs} )
200- if (CMAKE_BUILD_TYPE STREQUAL "Release " )
200+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug " )
201201 if (APPLE )
202202 target_link_options (llava_main PRIVATE "LINKER:-dead_strip,-s" )
203203 else ()
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ list(TRANSFORM _executor_runner__srcs PREPEND "${EXECUTORCH_ROOT}/")
151151# link to
152152#
153153add_executable (selective_build_test ${_executor_runner__srcs} )
154- if (CMAKE_BUILD_TYPE EQUAL "Release " )
154+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug " )
155155 target_link_options (selective_build_test PRIVATE "LINKER:--gc-sections" )
156156endif ()
157157target_link_libraries (
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ list(TRANSFORM _size_test__srcs PREPEND "${EXECUTORCH_ROOT}/")
5252# when we cross compile to ios
5353add_executable (size_test ${_size_test__srcs} )
5454target_link_libraries (size_test executorch)
55- if (CMAKE_BUILD_TYPE EQUAL "Release " )
55+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug " )
5656 target_link_options (size_test PRIVATE "LINKER:--gc-sections" )
5757endif ()
5858
@@ -64,7 +64,7 @@ target_link_options_shared_lib(portable_ops_lib)
6464target_link_libraries (
6565 size_test_all_ops executorch portable_ops_lib portable_kernels
6666)
67- if (CMAKE_BUILD_TYPE EQUAL "Release " )
67+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug " )
6868 target_link_options (size_test_all_ops PRIVATE "LINKER:--gc-sections" )
6969endif ()
7070
@@ -76,7 +76,7 @@ add_executable(size_test_all_optimized_ops ${_size_test__srcs})
7676target_link_options_shared_lib(optimized_native_cpu_ops_lib)
7777target_link_libraries (
7878 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 " )
8080 target_link_options (size_test_all_optimized_ops PRIVATE "LINKER:--gc-sections" )
8181endif ()
8282endif ()
Original file line number Diff line number Diff line change 44# This source code is licensed under the BSD-style license found in the
55# LICENSE file in the root directory of this source tree.
66
7- if (CMAKE_BUILD_TYPE STREQUAL "Release " )
7+ if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug " )
88 set (_is_build_type_release ON )
99 set (_is_build_type_debug OFF )
1010else ()
You can’t perform that action at this time.
0 commit comments