Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information