arduino / ArduinoCore-API

Hardware independent layer of the Arduino cores defining the official API
https://www.arduino.cc/reference/en/
GNU Lesser General Public License v2.1
216 stars 120 forks source link

A platform hook to run something before the preprocessor? #173

Closed carlosperate closed 2 years ago

carlosperate commented 2 years ago

I coudn't find a hook documented in https://arduino.github.io/arduino-cli/0.27/platform-specification/?utm_source=pocket_mylist#pre-and-post-build-hooks-since-arduino-ide-165 that runs before the preprocessor.

Looking around in the source code I've found a reference to recipe.hooks.prebuild, which seems to do the trick, but as it is not in the docs I'm not sure if I am meant to be using it?

carlosperate commented 2 years ago

Argh, sorry, I meant to open this in https://github.com/arduino/arduino-cli/. I've created the issue in the right location and will close this one: