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

Compile JVM JNI native libaries using Zig, add Linux ARM #1481

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

JakeWharton
Copy link
Collaborator

@JakeWharton JakeWharton commented Dec 18, 2024

Closes #1479. Closes #421.

@JakeWharton JakeWharton changed the title WIP WIP Zig Dec 18, 2024
@JakeWharton JakeWharton changed the title WIP Zig Compile JVM JNI native libaries using Zig, add Linux ARM Dec 18, 2024
@JakeWharton JakeWharton force-pushed the jw.zig.2024-12-18 branch 13 times, most recently from 00f24a2 to 0fb9ec7 Compare December 19, 2024 19:37
Zig's build system allows us to trivially cross-compile to different platforms and architectures than the host.
@JakeWharton JakeWharton marked this pull request as ready for review December 19, 2024 19:39
License instead of this License.


"CLASSPATH" EXCEPTION TO THE GPL
Copy link
Contributor

Choose a reason for hiding this comment

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

This part’s important! And hiding

Comment on lines +4 to +6
// The Windows builds create a .lib file in the lib/ directory which we don't need.
const deleteLib = b.addRemoveDirTree(b.getInstallPath(.prefix, "lib"));
b.getInstallStep().dependOn(&deleteLib.step);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We don't do Windows at the moment, but might in the future (#1360). It should be easier now, anyway.

@JakeWharton
Copy link
Collaborator Author

Once it goes green I will change the required status checks and then merge.

@JakeWharton JakeWharton merged commit 86330f7 into trunk Dec 19, 2024
8 checks passed
@JakeWharton JakeWharton deleted the jw.zig.2024-12-18 branch December 19, 2024 20:30
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.

Requesting support for Linux ARM
2 participants