Closed
Description
Describe the problem
I coudn't find a hook documented in https://arduino.github.io/arduino-cli/0.27/platform-specification/#pre-and-post-build-hooks-since-arduino-ide-165 that runs before the preprocessor.
To reproduce
N/A
Expected behavior
N/A
Arduino CLI version
0.27.1
Operating system
N/A
Operating system version
N/A
Additional context
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?
Issue checklist
- I searched for previous reports in the issue trackerI verified the problem still occurs when using the nightly buildMy report contains all necessary details
Activity
cmaglie commentedon Oct 11, 2022
You're right,
recipe.hooks.prebuild
is the correct one. We support it but it didn't get through the documentation, I'll open a PR to add it to the documentation.