Merge "Add depfile handling for bazel_handler."

This commit is contained in:
Liz Kammer
2021-04-02 17:06:07 +00:00
committed by Gerrit Code Review
3 changed files with 123 additions and 4 deletions

View File

@@ -692,6 +692,10 @@ func (c *bazelSingleton) GenerateBuildActions(ctx SingletonContext) {
cmd.Implicit(PathForBazelOut(ctx, inputPath))
}
if depfile := buildStatement.Depfile; depfile != nil {
cmd.ImplicitDepFile(PathForBazelOut(ctx, *depfile))
}
// This is required to silence warnings pertaining to unexpected timestamps. Particularly,
// some Bazel builtins (such as files in the bazel_tools directory) have far-future
// timestamps. Without restat, Ninja would emit warnings that the input files of a