Default optimisation level

Hi all,

I am just wondering what the default optimisation level for a project is.

For example,

[env:nodemcu]
platform = espressif8266
board = nodemcu
framework = arduino

will this have any optimisations levels added?

Or are they only applied when explicitly using the build flags ie

[env:nodemcu]
platform = espressif8266
board = nodemcu
framework = arduino
build_flags = -Wall -O 

Thanks

Default optimization is -Os (size). See more with pio run --verbose.