Skip to content

rust: fix PowerPC machine model typo & value #568

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

Merged
merged 1 commit into from
Nov 26, 2021

Conversation

ojeda
Copy link
Member

@ojeda ojeda commented Nov 26, 2021

We were getting a warning on an unknown key in the target spec file
because there was a typo in the key. This warning should be an error,
but it seems -Dwarnings does not cover it (reported upstream:
rust-lang/rust#91262).

However, the value was also wrong: PowerPC does not support
the "kernel" machine model.

Given PPC_64 modules use the large model, use that value for the moment
for everything in PowerPC until we have proper target spec file generation
(at which point, we will need to pick the right model in each sitaution
for all architectures, properly).

Signed-off-by: Miguel Ojeda [email protected]

@mpe

We were getting a warning on an unknown key in the target spec file
because there was a typo in the key. This warning should be an error,
but it seems `-Dwarnings` does not cover it (reported upstream:
rust-lang/rust#91262).

However, the value was also wrong: PowerPC does not support
the "kernel" machine model.

Given PPC_64 modules use the large model, use that value for the moment
for everything in PowerPC until we have proper target spec file generation
(at which point, we will need to pick the right model in each sitaution
for all architectures, properly).

Signed-off-by: Miguel Ojeda <[email protected]>
@ojeda
Copy link
Member Author

ojeda commented Nov 26, 2021

Thanks Alex for the quick review (and the thumbs up in the linked issue!).

@ojeda ojeda merged commit c6389c5 into Rust-for-Linux:rust Nov 26, 2021
@ojeda ojeda deleted the ppc-code-model branch November 26, 2021 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants