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

drop the msp430.sh shim #1

Merged
merged 1 commit into from
Dec 30, 2016
Merged

drop the msp430.sh shim #1

merged 1 commit into from
Dec 30, 2016

Conversation

japaric
Copy link
Contributor

@japaric japaric commented Dec 19, 2016

Using the new asm-args field introduced in rust-lang/rust#38463, we can
fix the ABI problem in the target specification itself.

As the shim is gone, now the -mmcu flag is passed to the linker using
.cargo/config.

This commit also adds a build script. This build script will copy the
linker scripts from the ldscripts directory to $OUT_DIR. This (a) lets
you call the cargo command from a directory different that the root of
the Cargo project and (b) opens the possibility of using this crate as a
library.


r? @pftbest I didn't update the README. I'll leave that to you 😄. Also this depends on rust-lang/rust#38463.

Using the new asm-args field introduced in rust-lang/rust#38463, we can
fix the ABI problem in the target specification itself.

As the shim is gone, now the -mmcu flag is passed to the linker using
.cargo/config.

This commit also adds a build script. This build script will copy the
linker scripts from the ldscripts directory to $OUT_DIR. This (a) lets
you call the cargo command from a directory different that the root of
the Cargo project and (b) opens the possibility of using this crate as a
library.
@pftbest
Copy link
Owner

pftbest commented Dec 30, 2016

New nightly is finally released so I can merge this, thanks!

@pftbest pftbest merged commit 9ff8d0e into pftbest:master Dec 30, 2016
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.

2 participants