mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
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:
@@ -1667,7 +1667,8 @@ BuildOptions parse_arguments(int argc, const char *argv[])
|
|||||||
{
|
{
|
||||||
FAIL_WITH_ERR("Missing a compiler command such as 'compile' or 'build'.");
|
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)
|
if (!build_options.android.ndk_path)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1784,6 +1784,7 @@ static bool is_posix(OsType os)
|
|||||||
case OS_TYPE_FREEBSD:
|
case OS_TYPE_FREEBSD:
|
||||||
case OS_TYPE_OPENBSD:
|
case OS_TYPE_OPENBSD:
|
||||||
case OS_TYPE_SOLARIS:
|
case OS_TYPE_SOLARIS:
|
||||||
|
case OS_TYPE_ANDROID:
|
||||||
return true;
|
return true;
|
||||||
case OS_TYPE_WIN32:
|
case OS_TYPE_WIN32:
|
||||||
case OS_TYPE_WASI:
|
case OS_TYPE_WASI:
|
||||||
|
|||||||
Reference in New Issue
Block a user