Closed bjorn3 closed 10 months ago
I don't expect Cranelift to support the x32 ABI, but returning the correct pointer width from target-lexicon would allow easier checks in Cranelift to return an error which cg_clif then turns into a rustc fatal error that the target is not supported as opposed to giving an ICE.
Currently x86_64-unknown-linux-gnux32 will incorrectly give a pointer width of 64. This causes an ICE for cg_clif due to an assertion about the pointer width known to rustc and known to Cranelift not matching: https://github.com/rust-lang/rust/issues/118739