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
When linking rust libraries into a final C/C++ binary, sometimes you may need a library to be force loaded in order to include symbols that may otherwise not be referenced, for example if you're interfacing with the JNI. This can be controlled in bazel by passing alwayslink = True/False to cc_common.create_library_to_link. Should the rules expose a alwayslink attribute, similar to cc_library and others, to control this? I'm happy to submit this if so. I'm not sure how this interacts with #637 and #1268 since they mostly seem to focus on binaries being linked with rustc, and not clang
The text was updated successfully, but these errors were encountered:
When linking rust libraries into a final C/C++ binary, sometimes you may need a library to be force loaded in order to include symbols that may otherwise not be referenced, for example if you're interfacing with the JNI. This can be controlled in bazel by passing
alwayslink = True/False
tocc_common.create_library_to_link
. Should the rules expose aalwayslink
attribute, similar tocc_library
and others, to control this? I'm happy to submit this if so. I'm not sure how this interacts with #637 and #1268 since they mostly seem to focus on binaries being linked withrustc
, and notclang
The text was updated successfully, but these errors were encountered: