diff options
Diffstat (limited to 'cmd/soong_build/queryview.go')
| -rw-r--r-- | cmd/soong_build/queryview.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd/soong_build/queryview.go b/cmd/soong_build/queryview.go index ce3218498..67cb6cfc8 100644 --- a/cmd/soong_build/queryview.go +++ b/cmd/soong_build/queryview.go @@ -15,6 +15,7 @@ package main import ( + "android/soong/starlark_import" "io/fs" "io/ioutil" "os" @@ -47,6 +48,14 @@ func createBazelWorkspace(ctx *bp2build.CodegenContext, outDir string, generateF } } + // Add starlark deps here, so that they apply to both queryview and apibp2build which + // both run this function. + starlarkDeps, err2 := starlark_import.GetNinjaDeps() + if err2 != nil { + return err2 + } + ctx.AddNinjaFileDeps(starlarkDeps...) + return nil } |