Skip to content
Snippets Groups Projects
Commit 5be1f3a8 authored by Daniel Agar's avatar Daniel Agar Committed by Lorenz Meier
Browse files

ASan use normal optimization (MEMORY_DEBUG=1)

- see #4530
parent 84761a9b
No related branches found
No related tags found
No related merge requests found
......@@ -638,7 +638,7 @@ function(px4_add_common_flags)
endif()
if ($ENV{MEMORY_DEBUG} MATCHES "1")
set(max_optimization -O0)
set(max_optimization -Os)
set(optimization_flags
-fno-strict-aliasing
......@@ -646,7 +646,7 @@ function(px4_add_common_flags)
-funsafe-math-optimizations
-ffunction-sections
-fdata-sections
-g -fsanitize=address
-g3 -fsanitize=address
)
else()
set(max_optimization -Os)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment