-
Notifications
You must be signed in to change notification settings - Fork 27.7k
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
[Windows Arm64] Update tool to target Arm64 on Arm64 hosts #129807
Comments
One this work lands, we should clean up the packages repo tooling: |
@loic-sharma Please give me a ping when you want to land this, so that we can ensure the native assets support added in #134203 works for Windows arm64 as well. (Or if you land it earlier than that PR, I'll give you a ping on how to test the native assets on Arm64 Windows.) |
@pbo-linaro is the contributor working on adding Windows Arm64 support. @dcharkes It looks like the native assets support added by #134203 works already on Windows Arm64 machines thanks to x64 emulation. FYI we're still working on running tests on Windows Arm64 machines, your new tests won't run on Arm64 machines yet. @pbo-linaro, Daco is working on adding "native assets", which is a new way to support native code in pub packages. From my understanding, this will be an alternative to Flutter's existing support for native plugins. The package author creates a In #134203, Daco enabled the Flutter Windows build to use native assets using the x64 MSVC toolchain. To enable targeting Arm64, we will need to update the logic added by #134203 to use the correct MSVC toolchain depending on the host/target. (Daco feel free to correct any details I may have gotten wrong!) |
Hi, I'm currently working on windows-arm64 support and managed to get native (x64, arm64) and cross compilation (x64 -> arm64 and arm64 -> x64) of flutter apps to work on my local branch. One issue I'm investigating now is support for native_assets, where it fails because I don't think flutter project will accept a windows-arm64 enablement without native assets, so it would be nice if we could fix this together @dcharkes. Once native repository has correct support, I should be able to do the rest on flutter side. @loic-sharma: Do you see native assets as something mandatory for first enablement? Thanks, |
🎉
Yep, that sounds correct!
Yes, please feel free to create PRs to the dart-lang/native repo to do toolchain detection. ❤️
I'm not aware of anything. The |
Thanks for your reactive answer! The advice about using a path in pubspec.yaml is what I was missing to try this locally, that should help. |
The |
Background
See: https://flutter.dev/go/windows-arm64
Once #129805 lands, Arm64 hosts will be able to build x64 executables. These executables run using x64 emulation.
Solution
HostPlatform
andTargetPlatform
enumsAbi.current()
to determine the target architectureThe text was updated successfully, but these errors were encountered: