fix missing stack check instrument_flags (#4593)

This commit is contained in:
Daniel Agar
2016-05-20 21:17:54 -04:00
parent 4267b20c9a
commit 7badf645b3
+10
View File
@@ -439,6 +439,16 @@ function(px4_os_add_flags)
set(added_exe_linker_flags) # none currently
set(instrument_flags)
if ("${config_nuttx_hw_stack_check_${BOARD}}" STREQUAL "y")
set(instrument_flags
-finstrument-functions
-ffixed-r10
)
list(APPEND c_flags ${instrument_flags})
list(APPEND cxx_flags ${instrument_flags})
endif()
set(cpu_flags)
if (${BOARD} STREQUAL "px4fmu-v1")
set(cpu_flags