-
Notifications
You must be signed in to change notification settings - Fork 660
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
Add macOS arm64 support to 0.5.x #390
Conversation
hermes.podspec
Outdated
@@ -22,14 +24,14 @@ end | |||
|
|||
Pod::Spec.new do |spec| | |||
spec.name = "hermes" | |||
spec.version = "0.5.1" | |||
spec.version = "0.5.2-rc.1" |
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.
I changed this to be inline with the current version in this branch, but this should likely change before the actual release?
Ok, build is green. Will test on a DTK later today. |
@Huxpro This is tested and good to go. The one thing that would need a change is the version, I guess it can just be v0.5.2 or v0.5.3? |
@alloy hey i'm coming back to this!
Hm i'm not sure how does the arm64 support work to tell this. What does adding Basically, we used So if the npm package after this PR can work for both x86 and ARM out of the box I will say |
Mach-O binaries can be “fat” binaries, which mean they can contain multiple slices to support different architectures. In the case of these artefacts: $ file hermes-runtime-darwin-v0.5.2-rc1/destroot/bin/hermesc
hermes-runtime-darwin-v0.5.2-rc1/destroot/bin/hermesc: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64]
hermes-runtime-darwin-v0.5.2-rc1/destroot/bin/hermesc (for architecture x86_64): Mach-O 64-bit executable x86_64
hermes-runtime-darwin-v0.5.2-rc1/destroot/bin/hermesc (for architecture arm64): Mach-O 64-bit executable arm64
$ file hermes-runtime-darwin-v0.5.2-rc1/destroot/Library/Frameworks/hermes.framework/Versions/0/hermes
hermes-runtime-darwin-v0.5.2-rc1/destroot/Library/Frameworks/hermes.framework/Versions/0/hermes: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit dynamically linked shared library x86_64] [arm64]
hermes-runtime-darwin-v0.5.2-rc1/destroot/Library/Frameworks/hermes.framework/Versions/0/hermes (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64
hermes-runtime-darwin-v0.5.2-rc1/destroot/Library/Frameworks/hermes.framework/Versions/0/hermes (for architecture arm64): Mach-O 64-bit dynamically linked shared library arm64
Yup, it will work for both archs 👍
Ah gotcha, good for me to at least understand the reason for that being a prerelease 👍 |
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.
@alloy thanks for the elaboration! TIL the fat binaries!
Yeah then let's finalize this as 0.5.3
so we can have artifacts built with the correct version number ;)
2dbbf1f
to
c4cbd21
Compare
Updated the versions to 0.5.3. |
c4cbd21
to
1ecef09
Compare
Summary
Build macOS artefacts for macOS 10.13 and with arm64 slices.
Test Plan