Fix Artifact.getPath() call in CppCompileAction.validateInclusions
@@ -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());
}
}
}
