rules_java icon indicating copy to clipboard operation
rules_java copied to clipboard

Propagate `CcInfo` for native dependencies

Open Yannic opened this issue 1 year ago • 1 comments

This will, in a follow-up, allow us to create and link java_{binary,test}#laucher as the docs suggest.

Unfortunately, JavaInfo#transitive_native_libraries fails to propagate sufficient information about transitive dependencies of the native libraries, so linking fails because of missing symbols from transitive libraries that should be there.

Yannic avatar Jan 02 '25 11:01 Yannic

FYI, the missing info was deliberately removed. See https://docs.google.com/document/d/10isTEK5W9iCPp4BIyGBrLY5iti3Waaam6EeGVSjq3r8/edit?tab=t.0#heading=h.fs8cvfw0s0um

@comius can hopefully provide more on the rationale.

hvadehra avatar Jan 08 '25 12:01 hvadehra