When --crosstool_compilation_support=library/all, user header search paths from
child configurations are used in compilation.
@@ -111,7 +111,12 @@ public class ObjcCppSemantics implements CppSemantics {
@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
