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

Restingbull/compiler plugin rework #393

Merged

Conversation

restingbull
Copy link
Collaborator

Merging fixes for the compiler plugins. (long overdue)
Add small optimization to skip building without sources.
First pass to sort out export vs. runtime vs neverlink.
Update examples to cover more cases.

examples/android/WORKSPACE Outdated Show resolved Hide resolved
examples/android/lib/BUILD.bazel Show resolved Hide resolved
examples/android/third_party/BUILD.bazel Outdated Show resolved Hide resolved
for jar_output in ji.outputs.jars:
jar = jar_output.class_jar
if ctx.attr.target_embedded_compiler:
jars.append(jarjar_action(
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice, so you're deshading the compiler plugins and the action should be cacheable :-)

kotlin/internal/jvm/jvm.bzl Outdated Show resolved Hide resolved
examples/android/lib/BUILD.bazel Show resolved Hide resolved
@restingbull restingbull force-pushed the restingbull/compiler-plugin-rework branch from 8cc1f9a to e118144 Compare November 16, 2020 20:10
Copy link
Collaborator

@cgruber cgruber left a comment

Choose a reason for hiding this comment

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

A few nits and issues, but nearly there.

examples/android/lib/BUILD.bazel Show resolved Hide resolved
examples/plugin/src/noarg/BUILD Show resolved Hide resolved
examples/plugin/src/serialization/empty.kt Outdated Show resolved Hide resolved
@cgruber
Copy link
Collaborator

cgruber commented Nov 16, 2020

Probably want to rebase from the changes from the release branch.

@restingbull restingbull force-pushed the restingbull/compiler-plugin-rework branch 2 times, most recently from c729940 to 84c0c6e Compare November 16, 2020 21:11
.bazelignore Outdated Show resolved Hide resolved
Copy link
Collaborator

@cgruber cgruber left a comment

Choose a reason for hiding this comment

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

Just the formatting issue for .bazelignore, and the commented find configuration for reflow.

Corbin Smith added 9 commits November 17, 2020 13:14
* require ids
* indicate which phase the plugin executes: stub and compile
* include plugin dependencies
* allow compiler plugins to be exported via the exported_compiler_plugins
* allow "bash" substitutions for plugin arguments of working directories (anvil demonstrates)

Update bazel toolchains to 3.7
Update documentation
Fix .bazelignore (wonder what formatted that.)
Removed merge artifact from toolchain.
@restingbull restingbull force-pushed the restingbull/compiler-plugin-rework branch from 84c0c6e to 54544c0 Compare November 17, 2020 18:16
@restingbull restingbull force-pushed the restingbull/compiler-plugin-rework branch from 54544c0 to 33b4081 Compare November 17, 2020 18:23
@restingbull restingbull merged commit 95b642f into bazelbuild:master Nov 17, 2020
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.

3 participants