Repository navigation
Allow cc_shared_library to traverse Rust linker input owners - #75
Merged
Merged
Conversation
Advertise CcInfo from rust_library and ToolchainInfo from rust_toolchain, and add CcSharedLibraryHintInfo to rust_stdlib_filegroup. This lets cc_shared_library visit the owners of Rust archives and standard library link flags instead of rejecting their linker inputs. Add integration coverage for a C shared library depending on rust_library.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Advertise
CcInfofromrust_libraryandToolchainInfofromrust_toolchain, and returnCcSharedLibraryHintInfofromrust_stdlib_filegroup. These advertisements letcc_shared_libraryvisit Rust linker-input owners, including toolchains in rules_cc versions that traverse toolchains.Validation: the existing shared-library integration test and a new
rust_libraryvariant both pass on macOS with rules_cc 0.2.18; the newer toolchain traversal was reviewed against rules_cc 0.2.22. Buildifier andgit diff --checkpass.-zbarskybot