📜  cmake g++ address sanitizer - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:45.410000             🧑  作者: Mango

代码示例1
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
set (CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")