Enable default NDK detection for Android x86_64 (#2910)

* android: detect NDK for x86_64 targets

* Treat Android as POSIX in is_posix

---------

Co-authored-by: Christoffer Lerno <christoffer@aegik.com>
This commit is contained in:
Lucas Alves
2026-02-20 17:07:44 -03:00
committed by GitHub
parent eae7d0c4a1
commit 7c68396c0d
2 changed files with 3 additions and 1 deletions

View File

@@ -1667,7 +1667,8 @@ BuildOptions parse_arguments(int argc, const char *argv[])
{
FAIL_WITH_ERR("Missing a compiler command such as 'compile' or 'build'.");
}
if (build_options.arch_os_target_override == ANDROID_AARCH64)
if (build_options.arch_os_target_override == ANDROID_AARCH64 ||
build_options.arch_os_target_override == ANDROID_X86_64)
{
if (!build_options.android.ndk_path)
{

View File

@@ -1784,6 +1784,7 @@ static bool is_posix(OsType os)
case OS_TYPE_FREEBSD:
case OS_TYPE_OPENBSD:
case OS_TYPE_SOLARIS:
case OS_TYPE_ANDROID:
return true;
case OS_TYPE_WIN32:
case OS_TYPE_WASI: