Fix Android detection.

This commit is contained in:
Christoffer Lerno
2025-06-08 11:53:47 +02:00
parent c7b3ae0cf9
commit 1617792a35
2 changed files with 2 additions and 0 deletions

View File

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

View File

@@ -1949,6 +1949,7 @@ void target_setup(BuildTarget *target)
compiler.platform.vendor = vendor_from_llvm_string(slice_next_token(&target_triple_string, '-'));
compiler.platform.os = os_from_llvm_string(slice_next_token(&target_triple_string, '-'));
compiler.platform.environment_type = environment_type_from_llvm_string(target_triple_string);
if (compiler.platform.environment_type == ENV_TYPE_ANDROID) compiler.platform.os = OS_TYPE_ANDROID;
if (target->debug_info == DEBUG_INFO_NOT_SET)
{