You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, platformio does not play well in combination with the compile/link flag -flto (enabled via build_flags), which enables link time optimization. This is because the intermediate archive files cannot be created due to the lack of the LTO plugin in binutils' ar. One could work around this by setting the environment variable AR accordingly beforehand. This, however, breaks the purpose of platformio of hiding such platform specific configurations from the user. Another way is to use always gcc-ar instead of the plain ar.
I suggest to change arm-none-eabi-ar into arm-none-eabi-gcc-arhere.
Link time optimization can highly improve flash and memory usage of the compiled firmware.
The text was updated successfully, but these errors were encountered:
daniel-starke
added a commit
to daniel-starke/platform-ststm32
that referenced
this issue
Aug 3, 2020
Currently, platformio does not play well in combination with the compile/link flag
-flto
(enabled viabuild_flags
), which enables link time optimization. This is because the intermediate archive files cannot be created due to the lack of the LTO plugin in binutils' ar. One could work around this by setting the environment variableAR
accordingly beforehand. This, however, breaks the purpose of platformio of hiding such platform specific configurations from the user. Another way is to use always gcc-ar instead of the plain ar.I suggest to change
arm-none-eabi-ar
intoarm-none-eabi-gcc-ar
here.Link time optimization can highly improve flash and memory usage of the compiled firmware.
The text was updated successfully, but these errors were encountered: