Skip to content

Commit

Permalink
fix missing stack check instrument_flags (#4593)
Browse files Browse the repository at this point in the history
  • Loading branch information
dagar committed May 21, 2016
1 parent 4267b20 commit 7badf64
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmake/nuttx/px4_impl_nuttx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7badf64

Please sign in to comment.