mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Update Android ABI lowering
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user