move -fno-math-errno to nuttx only

This commit is contained in:
Daniel Agar 2017-06-22 12:13:31 -04:00 committed by Lorenz Meier
parent 75a91f79ae
commit 58ca307c9d
2 changed files with 4 additions and 1 deletions

View File

@ -371,7 +371,6 @@ function(px4_add_common_flags)
-funsafe-math-optimizations
-ffunction-sections
-fdata-sections
-fno-math-errno
-fmerge-all-constants
${PIC_FLAG}
)

View File

@ -579,6 +579,10 @@ function(px4_os_add_flags)
-nostdlib
)
set(added_optimization_flags
-fno-math-errno
)
set(added_exe_linker_flags) # none currently
set(instrument_flags)