aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar shahan <shahan@google.com>2018-08-09 08:18:39 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-08-09 08:19:59 -0700
commitb59d65443a9df242b1c6ba9ef0912ff02941a123 (patch)
treebce4b643a41c6a953da02e4b4d788d7a2d9582a2
parent33afd3cfc718d222e8b23584652ba0628538a4e5 (diff)
Stop allowing targets with loose headers checking that reference srcs/hdrs in other package to also treat those package as loose.
PiperOrigin-RevId: 208051086
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/cpp/CcCommon.java12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CcCommon.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CcCommon.java
index 321d3755ec..ffcd3fece7 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CcCommon.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CcCommon.java
@@ -591,18 +591,6 @@ public final class CcCommon {
.getPathUnderExecRoot();
result.add(rulePackage);
- // Gather up all the dirs from the rule's srcs as well as any of the srcs outputs.
- if (hasAttribute("srcs", BuildType.LABEL_LIST)) {
- for (TransitiveInfoCollection src :
- ruleContext.getPrerequisitesIf("srcs", Mode.TARGET, FileProvider.class)) {
- result.add(src.getLabel().getPackageIdentifier().getPathUnderExecRoot());
- for (Artifact a : src.getProvider(FileProvider.class).getFilesToBuild()) {
- // Attempt to gather subdirectories that might contain include files.
- result.add(a.getRootRelativePath().getParentDirectory());
- }
- }
- }
-
// Add in any 'includes' attribute values as relative path fragments
if (ruleContext.getRule().isAttributeValueExplicitlySpecified("includes")) {
PathFragment packageFragment = ruleContext.getLabel().getPackageIdentifier()