Skip to content

Commit 9098d33

Browse files
committed
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 <[email protected]>
1 parent 04b7859 commit 9098d33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/rust/target.json

Lines changed: 1 addition & 1 deletion
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)