-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
CcSkylarkApiProvider does not expose alwayslink libraries #7033
Comments
cc @hlopko Just to comment on why this would be useful, Go rules like For some libraries, it's necessary to pass Setting |
With bazel 0.22 we'll introduce a new Starlark API that contains library_to_link which contains alwayslink field. Docs are being written. Relevant is also the issue for incompatible flag removing the CcSkylarkApiProvider: #7036. Pedro, pls close once docs are there and there are no more comments. Thanks! |
I apologize, it will only be in the Bazel 0.23, the commit was submitted today: 94e5016. Thanks! |
@hlopko Sorry to resurrect this old issue, but is this flag exposed anywhere in the The problem is that I'm not sure how to tell if a |
You would get the |
@oquenchil Thanks, this should work. I initially skipped over that field because I thought it was deprecated, but after reading #8118, it looks like it's only the list return value that's deprecated. |
Description of the problem / feature request:
CcSkylarkApiProvider
should exposecc_library
ies withalwayslink = True
, so that it is possible to properly add-Wl,--whole-source
when we need to build the link flag ourselves, such as in rules_go.What's the output of
bazel info release
?Any other information, logs, or outputs that you want to share?
Ongoing dicussion at bazel-contrib/rules_go#1879
The text was updated successfully, but these errors were encountered: