commit | c88ba10b51a7bc9a4c4f2a316ac8221d0612ee98 | [log] [tgz] |
---|---|---|
author | yuzhy8701 <18453608+yuzhy8701@users.noreply.github.com> | Mon May 13 06:34:12 2024 -0700 |
committer | GitHub <noreply@github.com> | Mon May 13 13:34:12 2024 +0000 |
tree | a94a068e293e1e2c97111ba7f9dbd43556064747 | |
parent | 6a06c81086bc81c6b6a7918c5e3fb2f517b80d4a [diff] |
Fix cc_common_link when using sibling repository layout (#2643) Linking with cc_common is broken for external repositories if you also specify `--experimental_sibling_repository_layout`. The rule would complain `The package dir path should be a prefix of the crate_info.output.path`. It happens because the package path derived from `bin_dir`, `workspace_root` and `package` did not match how sibling layout handles external repositories. This change ignores the `workspace_root` component if the path signifies the usage of sibling layout, as it is not needed.
This repository provides rules for building Rust projects with Bazel.
General discussions and announcements take place in the GitHub Discussions, but there are additional places where community members gather to discuss rules_rust
.
Please refer to the full documentation.