diff --git a/releasenotes.md b/releasenotes.md index d286e1f07..ad0e0d761 100644 --- a/releasenotes.md +++ b/releasenotes.md @@ -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. diff --git a/src/compiler/target.c b/src/compiler/target.c index 8a5b67803..7acf4bdff 100644 --- a/src/compiler/target.c +++ b/src/compiler/target.c @@ -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) {