Skip to content
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

Build a universal binary to support M1 (Apple silicon) #181

Merged
merged 4 commits into from
Sep 28, 2021

Conversation

Nazgolze
Copy link
Contributor

Closes #177

Since this change is around cpu architecture and not OS, I did some testing on Ubuntu ARM64. Interestingly, 5.1.0 here did not have the same issue as on the Mac M1. Nevertheless, I've tested this PR on the M1 Mac and Ubuntu ARM64, have not encountered any errors and, so far, it's working well in our app (though the more eyeballs, the better - if @buu700 is able to give this a try as well 🙏 )

buu700 added a commit to buu700/rocksdb-tmp that referenced this pull request Sep 21, 2021
@buu700
Copy link

buu700 commented Sep 21, 2021

Looks good to me, thanks @Nazgolze!

@vweevers
Copy link
Member

Can we make this work for a universal binary as well? See Level/leveldown#781 for comparison - I want to do the same for rocksdb

deps/rocksdb/rocksdb.gyp Outdated Show resolved Hide resolved
binding.gyp Outdated Show resolved Hide resolved
Copy link
Member

@vweevers vweevers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you! Will release early next week

@vweevers vweevers changed the title Include 'rocksdb/util/crc32c_arm64.cc' on arm64 architectures Build a universal binary to support M1 (Apple silicon) Sep 24, 2021
@vweevers
Copy link
Member

Note to self: on release, compare prebuild binary size to the previous release

@vweevers vweevers merged commit 0bda9ba into Level:master Sep 28, 2021
@vweevers
Copy link
Member

5.1.1

@Nazgolze Nazgolze deleted the 177_apple_silicon_runtime_error branch September 28, 2021 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Apple Silicon run-time error
3 participants