Skip to content
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

fix compilation to ARMv6-M with +alloc #290

Merged
merged 4 commits into from
Nov 30, 2020
Merged

fix compilation to ARMv6-M with +alloc #290

merged 4 commits into from
Nov 30, 2020

Conversation

japaric
Copy link
Member

@japaric japaric commented Nov 30, 2020

fixes #285

explanation: there's no Arc type in the alloc crate (or the standard library) when you compile for ARMv6-M because the type uses CAS operations (compare_and_swap) in its implementation and that API is not available on ARMv6-M. this PR fixes the issue by omitting the impl Format for Arc when the target is ARMv6-M

actually there are more "no CAS" targets than ARMv6-M so this PR does the same for all those (that we know of as of rust 1.48)

@japaric japaric merged commit a83a8f3 into main Nov 30, 2020
@japaric japaric deleted the fix-v6m branch November 30, 2020 14:17
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.

docs.rs fails to build defmt
2 participants