diff mbox series

[meta-lts-mixins,wrynose/rust,01/10] rust-target-config.bbclass: Add i128:128 to mips64 data layouts

Message ID cbc92e943b10031b7392a737941b73bc9f9f65e6.1795997683.git.scott.murray@konsulko.com
State New
Headers show
Series Update to 1.100.0 | expand

Commit Message

Scott Murray Nov. 30, 2026, 12:52 a.m. UTC
From: Michal Sieron <michalwsieron@gmail.com>

LLVM 22 added i128:128 to the default MIPS64 data layout. rustc rejects
a target spec whose data-layout differs from the one LLVM reports, so
building libstd for mips64 fails:

  error: data-layout for target `mips64-octeon2-linux-gnu`,
  `E-m:e-i8:8:32-i16:16:32-i64:64-n32:64-S128`, differs from LLVM
  target's `mips64-octeon2-linux-gnu` default layout,
  `E-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128`

Add i128:128 to the mips64 and mips64el entries to match, as already
done for the other 64-bit architectures. mips64-n32 is left alone.

AI-Generated: Uses Cursor

Signed-off-by: Michal Sieron <michal.sieron@nokia.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(adapted from oe-core commit 781e3a54a8cf13c092fd68c46cd87d80ca8679f0)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
---
 classes-recipe/rust-target-config.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/classes-recipe/rust-target-config.bbclass b/classes-recipe/rust-target-config.bbclass
index fee19a1..1faaaef 100644
--- a/classes-recipe/rust-target-config.bbclass
+++ b/classes-recipe/rust-target-config.bbclass
@@ -225,7 +225,7 @@  TARGET_C_INT_WIDTH[mipsel] = "32"
 MAX_ATOMIC_WIDTH[mipsel] = "32"
 
 ## mips64-unknown-linux-{gnu, musl}
-DATA_LAYOUT[mips64] = "E-m:e-i8:8:32-i16:16:32-i64:64-n32:64-S128"
+DATA_LAYOUT[mips64] = "E-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
 TARGET_ENDIAN[mips64] = "big"
 TARGET_POINTER_WIDTH[mips64] = "64"
 TARGET_C_INT_WIDTH[mips64] = "32"
@@ -239,7 +239,7 @@  TARGET_C_INT_WIDTH[mips64-n32] = "32"
 MAX_ATOMIC_WIDTH[mips64-n32] = "64"
 
 ## mips64el-unknown-linux-{gnu, musl}
-DATA_LAYOUT[mips64el] = "e-m:e-i8:8:32-i16:16:32-i64:64-n32:64-S128"
+DATA_LAYOUT[mips64el] = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
 TARGET_ENDIAN[mips64el] = "little"
 TARGET_POINTER_WIDTH[mips64el] = "64"
 TARGET_C_INT_WIDTH[mips64el] = "32"