Skip to content

Do not give-up on compile --only-compilation-database if prototypes generation fails #1552

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 3 commits into from
Nov 23, 2021

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Nov 17, 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?
    Makes the generation of the "compilation database" more resilient.
  • What is the current behavior?
    the database generation fails if the sketch cannot compile.
  • What is the new behavior?
    The database is generated anyway unless there are critical components missing or the platform is misconfigured.

@cmaglie cmaglie requested a review from a team November 17, 2021 15:18
@per1234 per1234 added the topic: code Related to content of the project itself label Nov 20, 2021
@cmaglie cmaglie force-pushed the try-hard-compile-commands branch from b0e9e3b to 20cfba0 Compare November 22, 2021 18:44
@cmaglie cmaglie merged commit 0d2207a into arduino:master Nov 23, 2021
@cmaglie cmaglie deleted the try-hard-compile-commands branch November 23, 2021 08:37
umbynos pushed a commit that referenced this pull request Nov 23, 2021
…database` (#1552)

* Compilation database: Do not give-up if prototype generation fails

* Added tests

* Compilation database: Do not give up after failing detection of libraries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants