Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 of 3 tasks
carlosperate opened this issue Oct 6, 2022 · 1 comment · Fixed by #1916
Closed
2 of 3 tasks

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

carlosperate opened this issue Oct 6, 2022 · 1 comment · Fixed by #1916
Assignees
Labels
conclusion: resolved Issue was resolved topic: documentation Related to documentation for the project type: imperfection Perceived defect in any part of project

Comments

@carlosperate
Copy link

carlosperate commented Oct 6, 2022

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 tracker
  • I verified the problem still occurs when using the nightly build
  • My report contains all necessary details
@carlosperate carlosperate added the type: imperfection Perceived defect in any part of project label Oct 6, 2022
@per1234 per1234 added the topic: documentation Related to documentation for the project label Oct 7, 2022
@cmaglie
Copy link
Member

cmaglie commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: documentation Related to documentation for the project type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants