build_flags error in platformio.ini
See original GitHub issueI have the following build flags set in my .ini file:
build_flags = -larm_cortexM4l_math -lm -Wl,-u,_printf_float
But every time I upload, the commas get expanded and a space is added leaving it like this:
build_flags = -larm_cortexM4l_math -lm -Wl, -u, _printf_float
(extra spaces added for readability)
Which is wrong syntax since gcc expects no spaces after the commas in the -Wl
flag (I have used these flags before, with Deviot 1.2.4 and PlatformIO 2.11.2) and therefore build fails.
I’ve tested this with the Atom PlatformIO IDE and the expansion does not occur (IDE 1.4.0 and PlatformIO 3.0.1).
The error:
*** [.pioenvs/teensy31/firmware.elf] Implicit dependency
/Users/gianpaolo/.platformio/platforms/teensy/builder/_printf_float’ not found, needed by target .pioenvs/teensy31/firmware.elf'.
System is OSX 10.11.6 Deviot 1.2.5 PlatformIO 3.0.1 Board: Teensy 3.2
Thanks!
Issue Analytics
- State:
- Created 7 years ago
- Comments:16 (8 by maintainers)
This issue was finally fixed with: https://github.com/gepd/Deviot/commit/ef012b106773689536287d7b3db338ccdf42d5ae
There not need to change anyting
Re-open if there is any issue related to this
Thanks for the report. I’ve reproduced the issue, I’ll try to find a solution without manually changing the name