Update Android ABI lowering

This commit is contained in:
Christoffer Lerno
2025-06-08 23:14:07 +02:00
parent becda6ea1d
commit e936b999d2
2 changed files with 2 additions and 1 deletions

View File

@@ -26,6 +26,7 @@
- Fixes methodsof to pick up all sorts of extension methods. #2192
- `--lsp` sometimes does not emit end tag #2194.
- Improve Android termux detection.
- Update Android ABI.
### Stdlib changes
- Deprecate `String.is_zstr` and `String.quick_zstr` #2188.

View File

@@ -61,7 +61,7 @@ ABIArgInfo *aarch64_coerce_illegal_vector(Type *type)
TypeSize size = type_size(type);
// CLANG: Android promotes char[<2>] to ushort, not uint
if (compiler.platform.environment_type == ENV_TYPE_ANDROID && size <= 2)
if ((compiler.platform.environment_type == ENV_TYPE_ANDROID || compiler.platform.os == OS_TYPE_ANDROID) && size <= 2)
{
return abi_arg_new_direct_coerce_type(type_ushort);
}