Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.

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

Merged
vweevers merged 4 commits into
Level:masterfrom
Nazgolze:177_apple_silicon_runtime_error
Sep 28, 2021
Merged

Build a universal binary to support M1 (Apple silicon)#181
vweevers merged 4 commits into
Level:masterfrom
Nazgolze:177_apple_silicon_runtime_error

Conversation

@Nazgolze
Copy link
Copy Markdown
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
Copy Markdown

buu700 commented Sep 21, 2021

Looks good to me, thanks @Nazgolze!

@vweevers
Copy link
Copy Markdown
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

Comment thread deps/rocksdb/rocksdb.gyp Outdated
@Nazgolze Nazgolze requested a review from vweevers September 24, 2021 16:04
Comment thread binding.gyp Outdated
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

5.1.1

@Nazgolze Nazgolze deleted the 177_apple_silicon_runtime_error branch September 28, 2021 19:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Apple Silicon run-time error

3 participants