Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add cross-compilation for Mac and Linux ARM systems#13

Closed
alandavidreyes wants to merge 2 commits into
lmdbjava:masterlmdbjava/native:masterfrom
alandavidreyes:masterCopy head branch name to clipboard
Closed

Add cross-compilation for Mac and Linux ARM systems#13
alandavidreyes wants to merge 2 commits into
lmdbjava:masterlmdbjava/native:masterfrom
alandavidreyes:masterCopy head branch name to clipboard

Conversation

@alandavidreyes

@alandavidreyes alandavidreyes commented Apr 19, 2023

Copy link
Copy Markdown

This change passes the relevant "-arch" flags into Clang to allow cross compiling of the underlying LMDB library using Clang. This creates binaries for Apple Silicon and ARM-based Linux processors (such as EC2's Graviton) that can be used by the parent library.

This is an attempt to solve the issue raised in #10.

This change passes the relevant "-arch" flags into Clang to allow cross
compiling of the underlying LMDB library using Clang. This creates
binaries for Apple Silicon and ARM-based Linux processors (such as EC2's
Graviton) that can be used by the parent library.
@alandavidreyes

Copy link
Copy Markdown
Author

This PR follows a similar pattern to #9. That PR seems to have stalled at the exploration of using QEMU to emulate the different architectures involved (using the run-on-arch-action action); if that approach is still desirable, I can make those changes here.

@alandavidreyes alandavidreyes changed the title Add cross-compilation for Mac and Linux arm systems Add cross-compilation for Mac and Linux ARM systems Apr 19, 2023
Some Linux/BSD systems use aarch64, others use arm64 to refer to the
underlying ARM architecture. The previous version of this branch
referred to that as aarch64. Given that there is some debate as to
what that architecture is called, it seems nicer to use the naming
convention that matches that used by Mac systems.
@bp-alex

bp-alex commented Apr 24, 2023

Copy link
Copy Markdown
Member

Closing this ticket as lmdbjava/lmdbjava#217 has provided a Zig-based cross-compilation in the Java module product. This in turn means the LmdbJava Native project is no longer required and will be archived.

@bp-alex bp-alex closed this Apr 24, 2023
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.