mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
mavlink: increase optimization to ${MAX_CUSTOM_OPT_LEVEL}
- MAX_CUSTOM_OPT_LEVEL is -O2 on boards that aren't flash constrained
This commit is contained in:
@@ -37,6 +37,7 @@ px4_add_module(
|
|||||||
MODULE modules__mavlink
|
MODULE modules__mavlink
|
||||||
MAIN mavlink
|
MAIN mavlink
|
||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
|
${MAX_CUSTOM_OPT_LEVEL}
|
||||||
-Wno-cast-align # TODO: fix and enable
|
-Wno-cast-align # TODO: fix and enable
|
||||||
-Wno-address-of-packed-member # TODO: fix in c_library_v2
|
-Wno-address-of-packed-member # TODO: fix in c_library_v2
|
||||||
-Wno-enum-compare # ROTATION <-> MAV_SENSOR_ROTATION
|
-Wno-enum-compare # ROTATION <-> MAV_SENSOR_ROTATION
|
||||||
|
|||||||
Reference in New Issue
Block a user