-
Notifications
You must be signed in to change notification settings - Fork 168
inline-asm
on nightly
#228
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
Comments
Are you using the git version by changing your dependency line or by using the Cargo patch feature? I think using patch should fix this. Another option is to use an older nightly. We'll aim to release a new cortex-m release soon too, which is the best fix! |
Yes, patch works (at least with the alloc repo) [dependencies]
cortex-m = { version = "0.6.2", features = ["inline-asm"] }
[patch.crates-io]
cortex-m = { git = "https://github.com/rust-embedded/cortex-m" } |
I've been using git version, but I'll try patch. Thank you @adamgreig , @diondokter ! |
@little-arhat did using patch work OK for you? |
@adamgreig yes, thanks! is there ETA for a proper fix? |
The next release will have a fix; see #217 for updates but hopefully soon. |
228: Added so attributes and cfgs are applied on the trampolines as well r=jonas-schievink a=korken89 I made a first go at #223, but maybe this implementation takes things we do not want to propagate. If you come up with something that should not propagate, please comment here. Closes #223 Closes rust-embedded/cortex-m-rt#213 Co-authored-by: Emil Fresk <[email protected]>
Hello,
With new
asm!
macro merged, it's impossible to usecotrex-m
crate withinline-asm
on nightly, because latest released version (0.6.2) still uses oldasm!
.At the same time it's impossible to use cortex-m from git, because it then conflicts with
cortex-m
brough by other deps (rtfm
,cortex-m-log
, etc):What's the recommended course of action, besides not using
inline-asm
? (refs #217).The text was updated successfully, but these errors were encountered: