-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
[macOS] Add support for the Apple Silicon (ARM64) build target. #39788
Conversation
That was fast. 👀 Great work as always! |
Came here to request this... and as always you guys are already on it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good.
I guess it might be worth making the BTW, you built with Xcode 12.0 beta, is there also a simulator for arm64 that can be used or do we have to wait for actual hardware to test? |
No, at least in current beta there's no simulator for arm64 macOS. |
0fe60c6
to
00299f1
Compare
PR for 3.2 - #39943 |
Thanks! |
@bruvzg BTW, this might need to be updated too I guess:
Though we probably want to keep support for having a x86_64-only template or an universal one, and it doesn't make a difference for the exporting step, so maybe we should support both or simply drop the suffix. |
@@ -5,7 +5,7 @@ def can_build(env, platform): | |||
# as doing lightmap generation and denoising on Android or HTML5 | |||
# would be a bit far-fetched. | |||
desktop_platforms = ["linuxbsd", "osx", "windows"] | |||
return env["tools"] and platform in desktop_platforms and env["bits"] == "64" | |||
return env["tools"] and platform in desktop_platforms and env["bits"] == "64" and env["arch"] != "arm64" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bruvzg Doesn't this make the above comment obsolete? It seems that only x86_64 is supported, not just "64-bit architectures".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version we are using is x86_64 only, newer versions of oneDNN should support arm64 as well (there were some issues with updating it, I do not remember what's exactly).
Adds support for ARM64 target on macOS (with
-arch arm64
option, targets x86-64 when arch is not specified).Universal binary can be created in the similar manner to iOS (currently this step is not automated):