queryview: fix depfile and incrementality.

A previous change caused the depfile construction to be incorrect.

Test: run m queryview twice, second run is a no-op.
Fixes: 184026544

Change-Id: Ibaaa97d6a09956e1ca9c48643b0ffad75e44f051
This commit is contained in:
Jingwen Chen 2021-03-30 12:21:13 +00:00
parent cf7f2e0a9e
commit e8a8296bc6
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ func generateBuildActionsForBazelConversion(ctx SingletonContext, converterMode
Command: fmt.Sprintf(
`rm -rf "${outDir}/"* && `+
`mkdir -p "${outDir}" && `+
`echo WORKSPACE: cat "%s" > "${outDir}/.queryview-depfile.d" && `+
`echo WORKSPACE: $$(cat "%s") > "${outDir}/.queryview-depfile.d" && `+
`BUILDER="%s" && `+
`echo BUILDER=$$BUILDER && `+
`cd "$$(dirname "$$BUILDER")" && `+