cmake status message if MEMORY_DEBUG enabled

This commit is contained in:
Daniel Agar 2016-06-21 11:52:23 -04:00 committed by Lorenz Meier
parent 924fb49bf5
commit 3f3a44fec5
1 changed files with 1 additions and 0 deletions

View File

@ -659,6 +659,7 @@ function(px4_add_common_flags)
endif()
if ($ENV{MEMORY_DEBUG} MATCHES "1")
message(STATUS "address sanitizer enabled")
set(max_optimization -Os)
set(optimization_flags