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

Add the Armv8-M targets #363

Merged
merged 4 commits into from
Dec 18, 2018
Merged

Add the Armv8-M targets #363

merged 4 commits into from
Dec 18, 2018

Conversation

hug-dev
Copy link
Contributor

@hug-dev hug-dev commented Dec 18, 2018

The first commit is to add support to the Arm targets that were recently added in Rust.
The second one, I am less sure about, is to replace a future deprecating call. I faced a compilation error about that deprecation problem when trying to produce the artifacts for the targets using ./x.py dist --target thumbv8m.[].-none-eabi[hf]. Maybe this last commit is not needed in which case I am happy to remove it.

This pull request is mainly made to be able to add those targets in the Rust CI to make those artifacts available for everybody, as cc-rs is used to assemble/compile the files in compiler-builtins.

hug-dev and others added 4 commits December 18, 2018 10:13
This commit adds the Armv8-M targets recently added into Rust:
* Armv8-M Baseline ("thumbv8m.base-none-eabi")
* Armv8-M Mainline ("thumbv8m.main-none-eabi")
* Armv8-M Mainline with FPU extension ("thumbv8m.main-none-eabihf")

The FPU chosen for the hardfloat variant of Armv8-M Mainline is the one
available in the Cortex-M33 processor: single precision, FPv5
architecture.
It is described in the Arm Cortex-M33 Processor Technical Reference
Manual on the page 64.
The trim_right_matches method is deprecating in 1.33 in favor of
trim_end_matches (see rust-lang/rust#52994).
@alexcrichton alexcrichton merged commit 3965579 into rust-lang:master Dec 18, 2018
@alexcrichton
Copy link
Member

Thanks!

pietroalbini added a commit to pietroalbini/rust that referenced this pull request Dec 20, 2018
Add dist builder for Armv8-M Mainline

This commit adds the Armv8-M Mainline target in the list of targets that
get their dist components built. It also update the build-manifest so
that this target gets also its dist components uploaded.

I took example on other pull requests doing the same thing for another target to make the changes. Please feel free to comment if things needs to be added or removed.

Doing `./x.py dist --target thumbv8m.main-none-eabi` worked locally so I assume that this will also work on the CI.
It will (I think) however need a new release of alexcrichton/cc-rs to include the pull request rust-lang/cc-rs#363 @alexcrichton

I hope to do the HardFloat version (`thumbv8m.main-none-eabihf`) and Baseline (`thumbv8m.base-none-eabi`) later, as fixes need to be done on compiler-builtins first to support those.
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Dec 21, 2018
Add dist builder for Armv8-M Mainline

This commit adds the Armv8-M Mainline target in the list of targets that
get their dist components built. It also update the build-manifest so
that this target gets also its dist components uploaded.

I took example on other pull requests doing the same thing for another target to make the changes. Please feel free to comment if things needs to be added or removed.

Doing `./x.py dist --target thumbv8m.main-none-eabi` worked locally so I assume that this will also work on the CI.
It will (I think) however need a new release of alexcrichton/cc-rs to include the pull request rust-lang/cc-rs#363 @alexcrichton

I hope to do the HardFloat version (`thumbv8m.main-none-eabihf`) and Baseline (`thumbv8m.base-none-eabi`) later, as fixes need to be done on compiler-builtins first to support those.
bors added a commit to rust-lang/rust that referenced this pull request Jan 14, 2019
Add dist builder for Armv8-M Mainline

This commit adds the Armv8-M Mainline target in the list of targets that
get their dist components built. It also update the build-manifest so
that this target gets also its dist components uploaded.

I took example on other pull requests doing the same thing for another target to make the changes. Please feel free to comment if things needs to be added or removed.

Doing `./x.py dist --target thumbv8m.main-none-eabi` worked locally so I assume that this will also work on the CI.
It will (I think) however need a new release of alexcrichton/cc-rs to include the pull request rust-lang/cc-rs#363 @alexcrichton

I hope to do the HardFloat version (`thumbv8m.main-none-eabihf`) and Baseline (`thumbv8m.base-none-eabi`) later, as fixes need to be done on compiler-builtins first to support those.
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.

4 participants