Skip to content

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

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

Open
3 tasks done
mllapps opened this issue Sep 22, 2022 · 0 comments
Open
3 tasks done
Labels
criticality: low Of low impact topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@mllapps
Copy link

mllapps commented Sep 22, 2022

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
@mllapps mllapps added the type: enhancement Proposed improvement label Sep 22, 2022
@per1234 per1234 added the topic: code Related to content of the project itself label Sep 22, 2022
@per1234 per1234 changed the title Build process property Provide property to identify when compile is only producing compilation database Sep 22, 2022
@cmaglie cmaglie added the criticality: low Of low impact label Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
criticality: low Of low impact topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

3 participants