Do not create parse_headers actions for headers that are also compiled into a
C++ module. The module build step already verifies that the header can be built.
RELNOTES: None.
@@ -453,6 +453,7 @@ public final class CcCompilationHelper {
if (shouldProcessHeaders
&& ccToolchain.shouldProcessHeaders(featureConfiguration, cppConfiguration)
+ && !shouldProvideHeaderModules()
&& !isTextualInclude) {
compilationUnitSources.put(
privateHeader, CppSource.create(privateHeader, label, CppSource.Type.HEADER));
@@ -511,7 +512,8 @@ public final class CcCompilationHelper {
if (!shouldProcessHeaders
|| isTextualInclude
|| !isHeader
- || !ccToolchain.shouldProcessHeaders(featureConfiguration, cppConfiguration)) {
+ || !ccToolchain.shouldProcessHeaders(featureConfiguration, cppConfiguration)
+ || shouldProvideHeaderModules()) {
return;
}
