Skip to content

Commit

Permalink
platformio.ini: change setting of compiler optimization
Browse files Browse the repository at this point in the history
- Disable default -Os optimization for size
- Set -O2 explictly in build_flags

This can be tweaked depending on the performance of the resulting builds.
  • Loading branch information
Phaze-III committed Mar 15, 2024
1 parent f495e5b commit 2077519
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions airrohr-firmware/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ build_flags =
-D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
-D HTTPCLIENT_1_1_COMPATIBLE=0 -D NO_GLOBAL_SERIAL=0
-DNDEBUG -DFP_IN_IROM -frandom-seed=b61f78373
-O2

build_flags_esp32 =
-DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
Expand Down Expand Up @@ -88,6 +89,9 @@ extra_scripts = platformio_script.py
platform_version = espressif8266@2.6.2
platform_version_esp32 = espressif32@1.11.1 ; using Arduino core 1.0.4

[env]
build_unflags = -Os

[DISABLEDenv:lolin_d32_pro_debug]
lang = DE
platform = ${common.platform_version_esp32}
Expand Down

0 comments on commit 2077519

Please sign in to comment.