Skip to content

scala_inlined_library #1753

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gergelyfabian
Copy link
Contributor

Description

Add a new rule to enable compiling scala code, that is not for macro definitions, but would be used in inlining (so ijar support should be disabled for it).
You may need strict dependency checks (transitive dependencies not on the classpath) for code that is to be used in inlining. Till now one would need to use scala_macro_library for that, but it was recently switched to include all transitive dependencies on the compiler's classpath, hence strict dependencies are not enforced there.

The new rule enables having both: a) code compiled for inlining b) strict dependency checks

If this direction is a good one, I can extend the PR with further necessary changes (e.g. tests).

@gergelyfabian gergelyfabian marked this pull request as ready for review July 16, 2025 12:25
@gergelyfabian gergelyfabian force-pushed the scala_inlined_library branch from 027b10c to dfe245b Compare July 16, 2025 12:30
Add a new rule to enable compiling scala code, that is not for macro
definitions, but would be used in inlining (so ijar support should be
disabled for it).

You may need strict dependency checks (transitive dependencies not on the
classpath) for code that is to be used in inlining.

Till now one would need to use scala_macro_library for that, but it was
recently switched to include all transitive dependencies on the compiler's
classpath, hence strict dependencies are not enforced there.

The new rule enables having both:
a) code compiled for inlining
b) strict dependency checks
@gergelyfabian gergelyfabian force-pushed the scala_inlined_library branch from dfe245b to 4de48e4 Compare July 16, 2025 14:03
@gergelyfabian
Copy link
Contributor Author

Added a basic test and documentation.

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.

1 participant