diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CcModule.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CcModule.java index 6e959e14cc01be..5065e3169627bf 100755 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CcModule.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CcModule.java @@ -2629,7 +2629,12 @@ private static void validateExtensions( doc = "feature_configuration to be queried.", positional = false, named = true), - @Param(name = "grep_includes", documented = false, positional = false, named = true), + @Param( + name = "grep_includes", + documented = false, + positional = false, + named = true, + defaultValue = "None"), @Param(name = "source_file", documented = false, positional = false, named = true), @Param(name = "output_file", documented = false, positional = false, named = true), @Param(name = "compilation_inputs", documented = false, positional = false, named = true), @@ -2645,7 +2650,7 @@ public void registerLinkstampCompileAction( StarlarkActionFactory starlarkActionFactoryApi, CcToolchainProvider ccToolchain, FeatureConfigurationForStarlark featureConfigurationForStarlark, - Artifact grepIncludes, + Object grepIncludes, Artifact sourceFile, Artifact outputFile, Depset compilationInputs, @@ -2664,7 +2669,7 @@ public void registerLinkstampCompileAction( CppLinkstampCompileHelper.createLinkstampCompileAction( ruleContext, ruleContext, - grepIncludes, + convertFromNoneable(grepIncludes, /* defaultValue= */ null), ruleContext.getConfiguration(), sourceFile, outputFile,