mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
Sanitize address
This commit is contained in:
@@ -530,14 +530,14 @@ function(px4_add_common_flags)
|
||||
)
|
||||
endif()
|
||||
|
||||
set(max_optimization -Os)
|
||||
set(max_optimization -O1)
|
||||
|
||||
set(optimization_flags
|
||||
-fno-strict-aliasing
|
||||
-fomit-frame-pointer
|
||||
-funsafe-math-optimizations
|
||||
-ffunction-sections
|
||||
-fdata-sections
|
||||
-g -fsanitize=address -fno-omit-frame-pointer
|
||||
)
|
||||
|
||||
if (NOT ${CMAKE_C_COMPILER_ID} MATCHES ".*Clang.*")
|
||||
|
||||
Reference in New Issue
Block a user