Skip to content

Commit

Permalink
The include scanner also returns the primary source file in its output,
Browse files Browse the repository at this point in the history
so we don't need to go looking for that in the declared include directories.

RELNOTES: None.
PiperOrigin-RevId: 211381758
  • Loading branch information
Googler authored and Copybara-Service committed Sep 3, 2018
1 parent 779653f commit f3f960c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,9 @@ private Iterable<Artifact> filterDiscoveredHeaders(
// anyway. Not having to look at them here saves us from requiring and ArtifactExpander, which
// actionExecutionContext doesn't have at this point. This only works as long as mandatory
// inputs do not contain headers that are built into a module.
for (Artifact source : getIncludeScannerSources()) {
undeclaredHeaders.remove(source);
}
for (Artifact header : ccCompilationContext.getDeclaredIncludeSrcs()) {
undeclaredHeaders.remove(header);
}
Expand Down

0 comments on commit f3f960c

Please sign in to comment.