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 target mappings for riscv32imc and riscv32imac #2551

Merged
merged 3 commits into from Jun 10, 2023

Conversation

TheConner
Copy link
Contributor

Similar problem as the one mentioned in #2136, just continuing by adding the 32 bit risc tuple mappings. Tuples like riscv32imc- and riscv32imac- should map to the clang riscv32- tuple.

Fixed by adding mappings and tests for the mappings. Projects that now failed to build with the "riscv32imac-unknown-none-elf" target tuple now build without issue.

Copy link
Contributor

@pvdrz pvdrz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey! Even though there are "tests" for this we should try to have proper (integration?) tests for this at some point.

For now could you document this in the changelog as added? thanks!

TheConner added a commit to TheConner/rust-bindgen that referenced this pull request Jun 10, 2023
Similar problem as the one mentioned in rust-lang#2136, just continuing by adding
the 32 bit risc tuple mappings. Tuples like riscv32imc- and riscv32imac- should map to
the clang riscv32- tuple.

Fixed by adding mappings and tests for the mappings. Projects that now
failed to build the "riscv32imac-unknown-none-elf" target tuple now
build without issue.
@TheConner
Copy link
Contributor Author

Added to changelog. Also, I agree there should be some form of integration tests that aims to test all of the target tuple edge cases, perhaps seeing if a basic example can be compiled without clang throwing an error if the mapped target tuple doesn't exist.

@pvdrz pvdrz merged commit d56f53d into rust-lang:main Jun 10, 2023
27 checks passed
nspin added a commit to nspin/rust-bindgen that referenced this pull request Feb 7, 2024
Similar change to rust-lang#2551. Just filling in more mappings.
emilio pushed a commit that referenced this pull request Feb 7, 2024
Similar change to #2551. Just filling in more mappings.
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.

None yet

2 participants