You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now users can put precompiled libraries into cc_library.srcs attribute. This has some limitations, namely:
It's not possible to link such library as whole-archive (well, in a sane way)
It's not possible to group libraries into lib-groups
There's no way of specifying if the library is static or dynamic, only the file extension is checked, which causes trouble on Windows with their .lib libraries.
People use cc_library.srcs approach so cc_library can depend on cc_binary, but don't realize the consequences.
Solution might be a new rule, cc_import, that will provide support for all of above, with nice documentation explaining what can happen (diamonds).
hlopko
added
P1
I'll work on this now. (Assignee required)
and removed
P2
We'll consider working on this in future. (Assignee optional)
labels
Nov 24, 2017
Right now users can put precompiled libraries into cc_library.srcs attribute. This has some limitations, namely:
Solution might be a new rule, cc_import, that will provide support for all of above, with nice documentation explaining what can happen (diamonds).
Related: #70, #3323
The text was updated successfully, but these errors were encountered: