-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Dart SDK support for macOS arm64 (Apple Silicon) #42773
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
Note, we won't have the build and test infrastructure set up until Q1, see https://crbug.com/1147828. |
Related specific issue for Dart native compilation to executables: #44001 |
Work on native compilation of Dart SDK for macOS ARM is progressing and we hope to have an initial build done in Q4, for full fledged support of builds and tests please see #42773 (comment) |
Bug: #42773 Change-Id: I7f5715952461ea87310dacb8aa37c66692b1aacc Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/184060 Reviewed-by: Siva Annamalai <[email protected]> Commit-Queue: Ryan Macnak <[email protected]>
Blocked on https://bugs.fuchsia.dev/p/fuchsia/issues/detail?id=67614 (our toolchain does not properly support Mac ARM64 target yet). |
I don't think we have much choice currently, and I'm not aware of any hard deadlines, so yes |
ARM64 Mac has 16k pages, so we need snapshot parts to be 16k aligned for our ELF loader to load them via mmap. TEST=ci Bug: #42773 Change-Id: Ifa3d70e453ea72883d821e48cfc76b0d983391f2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193821 Commit-Queue: Ryan Macnak <[email protected]> Reviewed-by: Siva Annamalai <[email protected]>
Allow for segment padding when testing that strip decreases snapshot size. Cf. bc21eda. TEST=ci Bug: #42773 Change-Id: Icf533b2caa756488e17856495f3877fb779d2faf Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/196040 Commit-Queue: Ryan Macnak <[email protected]> Reviewed-by: Alexander Markov <[email protected]>
@a-siva Should this move out of April? Which Milestone we're looking at? |
We are able to build locally, for this to be complete we need to set up the bots to build/test for this configuration. We expect this setup to be ready and done by end of June. So yes the milestone needs to be moved. I will drop April, do you have a milestone for activities to be done by end of June ? |
@a-siva We have June Milestone open |
Sorry for maybe dumb and naive question, but will this allow us to run dart analyzer natively on Apple Silicon CPU? |
Yes. Once we have a native SDK for Apple Silicon everything will run natively. |
Bug: #42773 Change-Id: I24e3e842ffc7b3ac28e3236b1b4ef393762f9c8a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193823 Reviewed-by: Alexander Thomas <[email protected]> Reviewed-by: William Hesse <[email protected]> Commit-Queue: Alexander Thomas <[email protected]>
This reverts commit 660e631. Reason for revert: Breaks FFI builds: as: unrecognized option '-EL' Original change's description: > [infra] Update to a clang with libc++.a for Mac ARM64. > > Bug: #42773 > Change-Id: I24e3e842ffc7b3ac28e3236b1b4ef393762f9c8a > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193823 > Reviewed-by: Alexander Thomas <[email protected]> > Reviewed-by: William Hesse <[email protected]> > Commit-Queue: Alexander Thomas <[email protected]> [email protected],[email protected],[email protected] Change-Id: Ib444653411c9053bd2eb81c2bf54dbbd9f3686b8 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: #42773 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200870 Reviewed-by: Alexander Thomas <[email protected]> Commit-Queue: Alexander Thomas <[email protected]>
Adjust Android build. Bug: #42773 Bug: flutter/flutter#75348 Change-Id: Iae98c03e8e155793648825b3155572412303434b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200903 Reviewed-by: Alexander Aprelev <[email protected]> Commit-Queue: Ryan Macnak <[email protected]>
We now have an initial build bot setup for building and testing this variant, see https://ci.chromium.org/p/dart/builders/ci.sandbox/vm-kernel-mac-release-arm64 |
@a-siva is it possible to download arm64 builds yet? |
@acoutts We don't yet have official SDK builds released for ARM64 Macs AFAIK. You can download and try one produced by CI bot if you want, latest build is always available from this bucket: |
jit mode works UPD: apparently I did something wrong the first time, AOT also works |
When dart sdk will release in stable for mac os arm64 |
@a-siva Are we done? Should this move to the next milestone? |
@mit-mit can you add a comment here on when PM would like to announce availability of this configuration. |
I'm happy to comment that arm64/M1 support is now available in the dev and beta channels from https://dart.dev/tools/sdk/archive If you experience any problems, kindly file new issues in the present bug tracker. Thanks! |
@a-siva I think we can close this issue now? |
Dart SDK support for macOS arm64 (Apple Silicon):
fetch dart
: Building Dart SDK fails atfetch dart
on Apple Silicon / DTK / macOS 11 #43488dart compile
: AOT compiled apps fail when run on Apple Silicon #44001The text was updated successfully, but these errors were encountered: