mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 18:27:05 +08:00
enable -fno-math-errno as we never check errno (#9281)
- disables setting of the errno variable as required by C89/C99 on calling math library routines
This commit is contained in:
@@ -361,7 +361,10 @@ function(px4_add_common_flags)
|
|||||||
set(_optimization_flags
|
set(_optimization_flags
|
||||||
-fno-strict-aliasing
|
-fno-strict-aliasing
|
||||||
-fomit-frame-pointer
|
-fomit-frame-pointer
|
||||||
|
|
||||||
|
-fno-math-errno
|
||||||
-funsafe-math-optimizations
|
-funsafe-math-optimizations
|
||||||
|
|
||||||
-ffunction-sections
|
-ffunction-sections
|
||||||
-fdata-sections
|
-fdata-sections
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user