avr: platform.txt: sketch_flags, -DPLATFORM={version}#21
Conversation
Improved baud rate settings formula
matthijskooijman
left a comment
There was a problem hiding this comment.
I'm not so sure about the sketch_flags stuff (and I expect it might raise more discussion, as it ties in with previous discussion about setting sketch-specific options that has of yet been unresolved).
However, adding a PLATFORM version define sounds like a sane thing to do. Especially since the IDE and core versions are no longer tied together since quite some time, checking ARDUINO is no longer effective to check for the presence of certain features of bugfixes in the core.
Adding ARDUINO_BOARD and ARDUINO_ARCH is probably a good idea, though I wonder if that stuff should really be done in arduino-builder with some "default flags" thing (in which case the ARDUINO define and some others should be moved as well), to get some consistency in different cores...
| compiler.elf2hex.cmd=avr-objcopy | ||
| compiler.ldflags= | ||
| compiler.size.cmd=avr-size | ||
| compiler.define=-DARDUINO= -DPLATFORM= |
There was a problem hiding this comment.
What is the purpose of this variable? It seems unused?
|
|
platform.txt:
See: arduino/arduino-builder#282