bytecodealliance / target-lexicon

Target "triple" support
Apache License 2.0
48 stars 41 forks source link

Fix the `Target::pointer_width` value on x32 and ilp32 targets. #98

Closed sunfishcode closed 8 months ago

sunfishcode commented 8 months ago

x32 and ilp32 are ABI variants on x86_64 and aarch64 platforms where pointers have 32-bit, even though the CPU architectures are 64-bit. Fix target-lexicon to correctly report the pointer width for these.

Fixes #97.