Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f438082

Browse files
committedNov 26, 2021
rust: fix PowerPC machine model typo & value
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 <ojeda@kernel.org>
1 parent 5d6948b commit f438082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎arch/powerpc/rust/target.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"arch": "powerpc64",
3-
"code-mode": "kernel",
3+
"code-model": "large",
44
"cpu": "ppc64le",
55
"data-layout": "e-m:e-i64:64-n32:64",
66
"env": "gnu",

0 commit comments

Comments
 (0)
Failed to load comments.