mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Sanitize address
This commit is contained in:
parent
5a0c09c98d
commit
8f8154cb1c
@ -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.*")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user