bazel icon indicating copy to clipboard operation
bazel copied to clipboard

android_library doesn't recognizes CcInfo

Open steeve opened this issue 7 years ago • 2 comments

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.

steeve avatar Aug 05 '19 15:08 steeve

This is fixed now, with 1.2 release. Closing.

gyias avatar Nov 14 '19 18:11 gyias

Awesome thank you!

steeve avatar Nov 14 '19 22:11 steeve