Skip to content

Commit

Permalink
When --crosstool_compilation_support=library/all, user header search …
Browse files Browse the repository at this point in the history
…paths from

child configurations are used in compilation.

PiperOrigin-RevId: 155564865
  • Loading branch information
calpeyser authored and kchodorow committed May 10, 2017
1 parent 927e31d commit 8a90a88
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ public void finalizeCompileActionBuilder(

@Override
public void setupCompilationContext(RuleContext ruleContext, Builder contextBuilder) {
// For objc builds, no extra setup is required.
// The genfiles root of each child configuration must be added to the compile action so that
// generated headers can be resolved.
for (PathFragment iquotePath :
ObjcCommon.userHeaderSearchPaths(objcProvider, ruleContext.getConfiguration())) {
contextBuilder.addQuoteIncludeDir(iquotePath);
}
}

@Override
Expand Down

0 comments on commit 8a90a88

Please sign in to comment.