Fix bug introduced after recent cleanup. When we do neither include scanning
nor .d file discovery, we need to add all declared includes as mandatory inputs
to an action.
RELNOTES: None.
@@ -325,6 +325,10 @@ public class CppCompileActionBuilder {
if (grepIncludes != null) {
realMandatoryInputsBuilder.add(grepIncludes);
}
+ if (!shouldScanIncludes && dotdFile == null) {
+ realMandatoryInputsBuilder.addTransitive(ccCompilationContext.getDeclaredIncludeSrcs());
+ realMandatoryInputsBuilder.addAll(additionalPrunableHeaders);
+ }
return realMandatoryInputsBuilder.build();
}
