AP_NavEKF: enable optimisation in Linux build

only really need debugging for SITL
This commit is contained in:
Andrew Tridgell 2015-04-16 08:36:16 +10:00
parent 48fb487a8c
commit 4586de6637

View File

@ -4,9 +4,11 @@
#if HAL_CPU_CLASS >= HAL_CPU_CLASS_150
// uncomment this to force the optimisation of this code, note that
// this makes debugging harder
#if CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL || CONFIG_HAL_BOARD == HAL_BOARD_LINUX
/*
turn down optimisation on SITL to make debugging easier. We are not
short of CPU in SITL.
*/
#if CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
#pragma GCC optimize("O0")
#else
#pragma GCC optimize("O3")