diff mbox series

[4/6] rust-common.bbclass: Define rust arch for x32 platforms

Message ID 20231201183356.311137-4-raj.khem@gmail.com
State Accepted, archived
Commit 02d6c89ca2e72e95d093282f5626e607060da588
Headers show
Series [v12,1/6] vte: upgrade 0.72.2 -> 0.74.0 | expand

Commit Message

Khem Raj Dec. 1, 2023, 6:33 p.m. UTC
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/classes-recipe/rust-common.bbclass | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta/classes-recipe/rust-common.bbclass b/meta/classes-recipe/rust-common.bbclass
index 3d73a370ec8..5bdaf0c7a69 100644
--- a/meta/classes-recipe/rust-common.bbclass
+++ b/meta/classes-recipe/rust-common.bbclass
@@ -63,6 +63,8 @@  def rust_base_triple(d, thing):
     # This catches ARM targets and appends the necessary hard float bits
     if os == "linux-gnueabi" or os == "linux-musleabi":
         libc = bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', 'hf', '', d)
+    if os == "linux-gnux32" or os == "linux-muslx32":
+        libc = ""
     elif "musl" in os:
         libc = "-musl"
         os = "linux"