AP_Generator: apply -Os to all cpp files

This commit is contained in:
Peter Barker 2024-11-21 11:13:30 +11:00 committed by Andrew Tridgell
parent 223d683441
commit 52291b622a
6 changed files with 12 additions and 0 deletions

View File

@ -13,6 +13,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma GCC optimize("Os")
#include "AP_Generator.h" #include "AP_Generator.h"
#if HAL_GENERATOR_ENABLED #if HAL_GENERATOR_ENABLED

View File

@ -12,6 +12,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma GCC optimize("Os")
#include "AP_Generator_Backend.h" #include "AP_Generator_Backend.h"
#if HAL_GENERATOR_ENABLED #if HAL_GENERATOR_ENABLED

View File

@ -13,6 +13,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma GCC optimize("Os")
#include "AP_Generator_IE_2400.h" #include "AP_Generator_IE_2400.h"
#if AP_GENERATOR_IE_2400_ENABLED #if AP_GENERATOR_IE_2400_ENABLED

View File

@ -13,6 +13,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma GCC optimize("Os")
#include "AP_Generator_IE_650_800.h" #include "AP_Generator_IE_650_800.h"
#if AP_GENERATOR_IE_650_800_ENABLED #if AP_GENERATOR_IE_650_800_ENABLED

View File

@ -13,6 +13,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma GCC optimize("Os")
#include "AP_Generator_IE_FuelCell.h" #include "AP_Generator_IE_FuelCell.h"
#if AP_GENERATOR_IE_ENABLED #if AP_GENERATOR_IE_ENABLED

View File

@ -13,6 +13,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma GCC optimize("Os")
#include "AP_Generator_config.h" #include "AP_Generator_config.h"
#if AP_GENERATOR_RICHENPOWER_ENABLED #if AP_GENERATOR_RICHENPOWER_ENABLED