-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[ffi] Support 32-bit ARM. #35760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Landed in d14dfc5. |
ARM32 support hasn't landed yet. |
Re-naming this issue to be more precise about the scope. |
This landed in https://dart-review.googlesource.com/c/sdk/+/97631 2 months ago. @sortie and I tried to import I'm not sure why it should be disabled on arm32 Linux: static bool IsFfiEnabled() {
// dart:ffi is not implemented for the following configurations
#if defined(TARGET_ARCH_DBC) && !defined(ARCH_IS_64_BIT)
// TODO(36809): Support SimDBC32.
return false;
#elif defined(TARGET_ARCH_DBC) && \
!(defined(HOST_ARCH_X64) || defined(HOST_ARCH_ARM64))
// TODO(36809): Support ia32 and arm.
return false;
#elif defined(TARGET_ARCH_DBC) && defined(HOST_ARCH_X64) && \
defined(HOST_OS_WINDOWS)
// TODO(35773): Support x64 Windows.
return false;
#elif defined(TARGET_ARCH_ARM) && \
!(defined(TARGET_OS_ANDROID) || defined(TARGET_OS_MACOS_IOS))
// TODO(36309): Support hardfp calling convention.
return false;
#elif !defined(TARGET_OS_LINUX) && !defined(TARGET_OS_MACOS) && \
!defined(TARGET_OS_ANDROID) && !defined(TARGET_OS_WINDOWS)
return false;
#else
// dart:ffi is also not implemented for precompiled in which case
// FLAG_enable_ffi is set to false by --precompilation.
// Once dart:ffi is supported on all targets, only users will set this flag
return FLAG_enable_ffi;
#endif
} @sjindel-google any thoughts on this? |
Support
dart:ffi
on Arm and AndroidThe text was updated successfully, but these errors were encountered: