Skip to content

Provide property to identify when compile is only producing compilation database #1888

Open
@mllapps

Description

@mllapps

Describe the request

Some tools needs to know if the execution is trigger from the build button or from the database compilation or something else. With a property it would be able to give the tools the information and they can decide what is to do.

Describe the current behavior

Actualy the compilation database will trigger all prebuild recipes. This results in a problem if I add "automatic build number" to my source code project.

With my ESP32 project I use a prebuild application. This tool should run on every build step. With the actual arduino-cli version the appliaction triggers automatically on every database compilation step. So the build number increments without any click on the build button.

The problem has beend discussed here:
https://forum.arduino.cc/t/arduino-ide-2-x-bug-recipe-hook/1034011/9

Arduino CLI version

nightly build

Operating system

Windows

Operating system version

10

Additional context

No response

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the nightly build
  • My request contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions