-
-
Notifications
You must be signed in to change notification settings - Fork 398
Add prioritization to tool selection in absence of explicit dependencies #1887
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
Conversation
810ad0d
to
5bf23b9
Compare
Codecov ReportBase: 36.56% // Head: 36.66% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #1887 +/- ##
==========================================
+ Coverage 36.56% 36.66% +0.10%
==========================================
Files 228 228
Lines 19376 19396 +20
==========================================
+ Hits 7084 7111 +27
+ Misses 11463 11455 -8
- Partials 829 830 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
|
fea4ed2
to
b64f1a3
Compare
Should this not be the boards platform (instead of the board's package)?
FYI |
It's the same since the tools are defined at the package level (and referenced at platform level as
I should change the sentence:
to
In practice the idea is that when the About the other question:
That is a really good point, I didn't consider the referenced platform, and I must add that in this PR.
The selected platform of course. Thanks for the feedback @jantje |
579f4bf
to
449770d
Compare
5bc5bbb
to
87abb68
Compare
87abb68
to
8a44930
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM
I just tested git master and this also solves an issue I had with a git checkout of the stm32duino core that had been annoying for quite some time (but I could fix it by just retrying and it would randomly work or not work, so wasn't annoying enough to investigate ;-p). Thanks! |
We should increase the annoyance then :-) |
Please check if the PR fulfills these requirements
before creating one)
our contributing guidelines
UPGRADING.md
has been updated with a migration guide (for breaking changes)It removes some ambiguities in compile/upload tools selection when the explicit dependencies set (from
package_index.json
) is missing.In a situation when different platforms provide the same tool (for example
arm-gcc-none-eabi
fromarduino
and other 3rd parties), and in absence of thepackage_index.json
, the selection of the tool in the compile/upload may not be deterministic (AKA: random).In the situation above where a tool is provided by multiple packages then the compiler will pick in order of priority:
The last rule is merely a way to make the tool selection fully deterministic even in the most uncommon situation.
No