Skip to content

Commit bf512fe

Browse files
committed
Update
[ghstack-poisoned]
1 parent 1ae275b commit bf512fe

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()

backends/qualcomm/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
6060
add_link_options("-flto=auto")
6161
endif()
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

examples/models/llama/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ if(ANDROID)
209209
endif()
210210

211211
add_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()

examples/models/llava/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ list(APPEND _common_include_directories ${stb_SOURCE_DIR}
197197
)
198198

199199
add_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()

examples/selective_build/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ list(TRANSFORM _executor_runner__srcs PREPEND "${EXECUTORCH_ROOT}/")
151151
# link to
152152
#
153153
add_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")
156156
endif()
157157
target_link_libraries(

test/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ list(TRANSFORM _size_test__srcs PREPEND "${EXECUTORCH_ROOT}/")
5252
# when we cross compile to ios
5353
add_executable(size_test ${_size_test__srcs})
5454
target_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")
5757
endif()
5858

@@ -64,7 +64,7 @@ target_link_options_shared_lib(portable_ops_lib)
6464
target_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")
6969
endif()
7070

@@ -76,7 +76,7 @@ add_executable(size_test_all_optimized_ops ${_size_test__srcs})
7676
target_link_options_shared_lib(optimized_native_cpu_ops_lib)
7777
target_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")
8181
endif()
8282
endif()

tools/cmake/preset/default.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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)
1010
else()

0 commit comments

Comments
 (0)