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

[23.1] Fix preview build #391

Merged
merged 2 commits into from
Jan 15, 2024
Merged

[23.1] Fix preview build #391

merged 2 commits into from
Jan 15, 2024

Conversation

jerboaa
Copy link
Collaborator

@jerboaa jerboaa commented Jan 15, 2024

Currently using --enable-preview is broken for Mandrel builds, since it doesn't install svm-foreign.jar in the right directory. This patch adds the relevant dependency (SVM_FOREIGN) and then installs it.

Closes: graalvm/mandrel#658

--enable-preview part of native-image flags needs some additional jars,
svm-foreign.jar, for example, for it to work. Add it to the dependency
build and copy the relevant artefact to it's place.
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jan 15, 2024
@jerboaa
Copy link
Collaborator Author

jerboaa commented Jan 15, 2024

I'll forward-port this to 24.0 and master once CI passes.

Copy link
Collaborator

@zakkak zakkak left a comment

Choose a reason for hiding this comment

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

LGTM.

@jerboaa jerboaa linked an issue Jan 15, 2024 that may be closed by this pull request
@jerboaa
Copy link
Collaborator Author

jerboaa commented Jan 15, 2024

Thanks for the review!

@jerboaa jerboaa added this to the 23.1.2.0-Final milestone Jan 15, 2024
@jerboaa jerboaa changed the title Fix preview build [23.1] Fix preview build Jan 15, 2024
@jerboaa jerboaa mentioned this pull request Jan 15, 2024
@jerboaa jerboaa merged commit 28665a9 into graalvm:23.1 Jan 15, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mandrel for JDK 21: native-image --enable-preview fails
2 participants