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

android_library doesn't recognizes CcInfo #9079

Closed
steeve opened this issue Aug 5, 2019 · 2 comments
Closed

android_library doesn't recognizes CcInfo #9079

steeve opened this issue Aug 5, 2019 · 2 comments
Assignees

Comments

@steeve
Copy link
Contributor

@steeve steeve commented Aug 5, 2019

Description of the problem / feature request:

android_library doesn't recognizes CcInfo and complains that it only wants cc_library.

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

  • Return CcInfo from a rule
  • Add that rule as a deps of an android_library

What operating system are you running Bazel on?

macos

What's the output of bazel info release?

0.28.1

Any other information, logs, or outputs that you want to share?

The current work around is to create an intermediate cc_library

cc_library(
    name = cc_library_name,
    deps = [rule_that_returns_cc_info],
)
android_library(
    name = android_library_name,
    deps = [cc_library_name],
)

I do think that java_library properly consumes CcInfo, however.

@gyias

This comment has been minimized.

Copy link
Member

@gyias gyias commented Nov 14, 2019

This is fixed now, with 1.2 release. Closing.

@gyias gyias closed this Nov 14, 2019
@steeve

This comment has been minimized.

Copy link
Contributor Author

@steeve steeve commented Nov 14, 2019

Awesome thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.