Add macOS arm64 support to 0.5.x#390
Conversation
hermes.podspec
Outdated
| 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.
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 👍 |
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