Skip to content

Conversation

@sgammon
Copy link
Contributor

@sgammon sgammon commented Jan 28, 2025

Summary

SVM (SubstrateVM) compile configuration classes must be included within the cli jar to prevent downstream native-image builds from failing. Fat JARs cannot be used with native-image, so these classes can still safely be excluded here.

Fixes and closes #907

Changelog

  • fix: don't exclude svm classes from cli jar
  • fix: include svm exclusions in fatjar config

@sgammon sgammon mentioned this pull request Jan 28, 2025
3 tasks
sgammon added a commit to elide-dev/pkl that referenced this pull request Jan 28, 2025
- fix: don't exclude svm classes from `cli` jar

SVM (SubstrateVM) compile configuration classes
must be included within the `cli` jar to prevent
downstream `native-image` builds from failing.

- fix: include svm exclusions in fatjar config

Fat JARs cannot be used with `native-image`, so
these classes can still safely be excluded here.

Fixes and closes apple#907
Cherry-picked from apple#914

Signed-off-by: Sam Gammon <sam@elide.dev>
sgammon added a commit to elide-dev/pkl that referenced this pull request Jan 28, 2025
- fix: don't exclude svm classes from `cli` jar

SVM (SubstrateVM) compile configuration classes
must be included within the `cli` jar to prevent
downstream `native-image` builds from failing.

- fix: include svm exclusions in fatjar config

Fat JARs cannot be used with `native-image`, so
these classes can still safely be excluded here.

Fixes and closes apple#907
Cherry-picked from apple#914

Signed-off-by: Sam Gammon <sam@elide.dev>
sgammon added a commit to elide-dev/pkl that referenced this pull request Jan 28, 2025
- fix: don't exclude svm classes from `cli` jar

SVM (SubstrateVM) compile configuration classes
must be included within the `cli` jar to prevent
downstream `native-image` builds from failing.

- fix: include svm exclusions in fatjar config

Fat JARs cannot be used with `native-image`, so
these classes can still safely be excluded here.

Fixes and closes apple#907
Cherry-picked from apple#914

Signed-off-by: Sam Gammon <sam@elide.dev>
sgammon added a commit to elide-dev/pkl that referenced this pull request Jan 29, 2025
- fix: don't exclude svm classes from `cli` jar

SVM (SubstrateVM) compile configuration classes
must be included within the `cli` jar to prevent
downstream `native-image` builds from failing.

- fix: include svm exclusions in fatjar config

Fat JARs cannot be used with `native-image`, so
these classes can still safely be excluded here.

Fixes and closes apple#907
Cherry-picked from apple#914

Signed-off-by: Sam Gammon <sam@elide.dev>
Copy link
Member

@bioball bioball left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

- fix: don't exclude svm classes from `cli` jar

SVM (SubstrateVM) compile configuration classes
must be included within the `cli` jar to prevent
downstream `native-image` builds from failing.

- fix: include svm exclusions in fatjar config

Fat JARs cannot be used with `native-image`, so
these classes can still safely be excluded here.

Fixes and closes apple#907

Signed-off-by: Sam Gammon <sam@elide.dev>
@sgammon sgammon force-pushed the fix/nativeimage-build branch from bf5057f to 5dbdbe9 Compare January 30, 2025 03:43
@sgammon
Copy link
Contributor Author

sgammon commented Jan 30, 2025

@bioball It's mad about formatting. Fixed

@bioball bioball merged commit 3fa935b into apple:main Jan 30, 2025
4 checks passed
@sgammon sgammon mentioned this pull request Mar 24, 2025
13 tasks
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.

Downstream native-image embedders are broken

2 participants