diff options
author | shahan <shahan@google.com> | 2018-04-09 11:04:02 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-04-09 11:05:59 -0700 |
commit | 25a4571a18ff08222fcf19e0d87768495270d22d (patch) | |
tree | 54cff242d395eac87cb6eedde4e3ce6aef5e9e02 /src/main/java/com/google/devtools/build/lib/rules | |
parent | e4fda37182b2e9ad72f6a91cc71ccc11f6fdea00 (diff) |
Fix Artifact.getPath() call in CppCompileAction.validateInclusions
PiperOrigin-RevId: 192153123
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/cpp/CppCompileAction.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppCompileAction.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppCompileAction.java index 18dd2de19d..4448eafd0e 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppCompileAction.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppCompileAction.java @@ -891,9 +891,9 @@ public class CppCompileAction extends AbstractAction // This call can never match the declared include sources (they would be matched above). // There are no declared include sources we need to warn about, so use an empty set here. if (isDeclaredIn(input, warnIncludeDirs, ImmutableSet.<Artifact>of())) { - warnings.add(input.getPath().toString()); + warnings.add(input.getExecPath().toString()); } else { - errors.add(input.getPath().toString()); + errors.add(input.getExecPath().toString()); } } } |