Skip to content

Now compile --only-compilation-database will run all pre-* hooks #1549

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

Merged
merged 8 commits into from
Nov 17, 2021

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Nov 16, 2021

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests before creating one)
  • The PR follows our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • What kind of change does this PR introduce?
    To generate the "Compilation Database" some platforms requires to run the pre-build hooks to actually have a compilable target.
  • What is the current behavior?
    The pre-hooks are skipped.
  • What is the new behavior?
    The pre-hooks are now executed.
  • Does this PR introduce a breaking change, and is titled accordingly?
    It may introduce some regression if a platform requires skipping pre-hooks to actually build a sketch. This is very unlikely BTW, since this would make fail also the full compile.
  • Other information:
    The post hooks and the compiler commands are still SKIPPED.

Fix #1547

@cmaglie cmaglie requested review from per1234 and a team November 16, 2021 14:33
@cmaglie cmaglie changed the title Now 'compile --only-compilation-database' will run all pre-* hooks Now compile --only-compilation-database will run all pre-* hooks Nov 16, 2021
@cmaglie cmaglie self-assigned this Nov 16, 2021
cmaglie and others added 4 commits November 16, 2021 17:00
Co-authored-by: per1234 <accounts@perglass.com>
Co-authored-by: per1234 <accounts@perglass.com>
Co-authored-by: per1234 <accounts@perglass.com>
Co-authored-by: per1234 <accounts@perglass.com>
Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not knowledgeable about the compilation database subject, but I was able to reproduce #1547 for both esp32:esp32 and STMicroelectronics:stm32 boards platforms previously and am not able to reproduce it after the change proposed here.

@cmaglie cmaglie merged commit e72f683 into arduino:master Nov 17, 2021
@cmaglie cmaglie deleted the fix-compile-db branch November 17, 2021 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to generate only the compilation database
3 participants