Skip to content

Commit

Permalink
rust: fix PowerPC machine model typo & value
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ojeda committed Nov 26, 2021
1 parent 5d6948b commit f438082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/rust/target.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"arch": "powerpc64",
"code-mode": "kernel",
"code-model": "large",
"cpu": "ppc64le",
"data-layout": "e-m:e-i64:64-n32:64",
"env": "gnu",
Expand Down

0 comments on commit f438082

Please sign in to comment.