Skip to content

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

Closed
@carlosperate

Description

@carlosperate

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions