Skip to content

Commit f4f81af

Browse files
committed
chore(build): remove sanitizer flags from CMakeLists
Removed AddressSanitizer and UndefinedBehaviorSanitizer flags from CMakeLists.txt and tests/CMakeLists.txt: - Removed -fsanitize=undefined,address from CXX_FLAGS and C_FLAGS - Removed -O0 -Wall -g -ggdb3 debug flags - Removed sanitizer linker flags These flags were temporarily added for memory leak detection during development but are not needed in the main branch. Log: Remove sanitizer flags from CMake configuration Influence: 1. Verify project builds successfully without sanitizer flags 2. Check that test compilation works normally 3. Ensure no performance impact from removed debug flags chore(build): 从 CMakeLists 中移除 sanitizer 标志 从 CMakeLists.txt 和 tests/CMakeLists.txt 中移除了 AddressSanitizer 和 UndefinedBehaviorSanitizer 标志: - 从 CXX_FLAGS 和 C_FLAGS 中移除 -fsanitize=undefined,address - 移除 -O0 -Wall -g -ggdb3 调试标志 - 移除 sanitizer 链接器标志 这些标志是在开发期间临时添加用于内存泄漏检测的,但在主分支中不需要。 Log: 从 CMake 配置中移除 sanitizer 标志 Influence: 1. 验证项目在没有 sanitizer 标志的情况下成功构建 2. 检查测试编译是否正常工作 3. 确保移除调试标志后没有性能影响
1 parent 0a5625f commit f4f81af

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
2424
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
2525
option(BUILD_WITH_X11 "Build X11 emulation" ON)
2626

27-
# Memory leak detection and debugging flags
28-
set(CMAKE_CXX_FLAGS "-O0 -fsanitize=undefined,address -Wall -g -ggdb3")
29-
set(CMAKE_C_FLAGS "-O0 -fsanitize=undefined,address -Wall -g -ggdb3")
30-
set(CMAKE_EXE_LINKER_FLAGS "-fsanitize=undefined,address")
31-
set(CMAKE_SHARED_LINKER_FLAGS "-fsanitize=undefined,address")
32-
3327
set(DS_BUILD_WITH_QT6 ON CACHE BOOL "Build dde-shell with Qt6")
3428

3529
if (DS_BUILD_WITH_QT6)

tests/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,4 @@
22
#
33
# SPDX-License-Identifier: CC0-1.0
44

5-
# Memory leak detection and debugging flags for tests
6-
set(CMAKE_CXX_FLAGS "-O0 -fsanitize=undefined,address -Wall -g -ggdb3")
7-
set(CMAKE_C_FLAGS "-O0 -fsanitize=undefined,address -Wall -g -ggdb3")
8-
set(CMAKE_EXE_LINKER_FLAGS "-fsanitize=undefined,address")
9-
set(CMAKE_SHARED_LINKER_FLAGS "-fsanitize=undefined,address")
10-
115
add_subdirectory(panels)

0 commit comments

Comments
 (0)