mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 07:33:34 +08:00
CMakeLists: don't always optimize for size
Going forward the optimization flags should be set for a platform, rather than for each individual module.
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ endif()
|
|||||||
px4_add_module(
|
px4_add_module(
|
||||||
MODULE lib__ecl
|
MODULE lib__ecl
|
||||||
STACK_MAIN 6000
|
STACK_MAIN 6000
|
||||||
COMPILE_FLAGS ${MODULE_CFLAGS} -Os
|
COMPILE_FLAGS ${MODULE_CFLAGS}
|
||||||
SRCS
|
SRCS
|
||||||
attitude_fw/ecl_controller.cpp
|
attitude_fw/ecl_controller.cpp
|
||||||
attitude_fw/ecl_pitch_controller.cpp
|
attitude_fw/ecl_pitch_controller.cpp
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ px4_add_module(
|
|||||||
MAIN base
|
MAIN base
|
||||||
STACK_MAIN 4096
|
STACK_MAIN 4096
|
||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
-Os
|
|
||||||
SRCS
|
SRCS
|
||||||
base.cpp
|
base.cpp
|
||||||
DEPENDS
|
DEPENDS
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ px4_add_module(
|
|||||||
MAIN ringbuffer
|
MAIN ringbuffer
|
||||||
STACK_MAIN 4096
|
STACK_MAIN 4096
|
||||||
COMPILE_FLAGS
|
COMPILE_FLAGS
|
||||||
-Os
|
|
||||||
SRCS
|
SRCS
|
||||||
ringbuffer.cpp
|
ringbuffer.cpp
|
||||||
DEPENDS
|
DEPENDS
|
||||||
|
|||||||
Reference in New Issue
Block a user