bazelbuild / rules_cc

C++ Rules for Bazel
https://bazel.build
Apache License 2.0
182 stars 90 forks source link

cc_shared_library drops some exported linker inputs #104

Closed c-parsons closed 8 months ago

c-parsons commented 3 years ago

I've been tinkering with some dependencies of a cc_shared_library target in my project, and I found that some linker inputs were being dropped.

Why do these lines exist?

for linker_input in dependency_linker_inputs:
    owner = str(linker_input.owner)
    if owner in owners_seen:
        continue
    owners_seen[owner] = True

If one of the dependencies propagates more than one linker input, all linker inputs past the first one are dropped.

Was this by design?