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

Activity

cmaglie

cmaglie commented on Oct 11, 2022

@cmaglie
Member

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.

self-assigned this
on Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Participants

    @cmaglie@carlosperate@per1234

    Issue actions

      A platform hook to run something before the preprocessor? · Issue #1910 · arduino/arduino-cli