diff options
author | 2019-07-08 17:08:34 -0700 | |
---|---|---|
committer | 2019-07-11 13:05:19 -0700 | |
commit | ee94d6ab14ee9480e9c68ca9616698ba2bd93e70 (patch) | |
tree | d56576f100e7d7cee2f16c47f0d9bf5ecee52c3b /python/proto.go | |
parent | a3002fc7abb9d3691b1f4d4316a1c4ee256c79dd (diff) |
Add RuleBuilder helper functions for built and prebuilt tools
Replace the common pattern of:
cmd.Tool(ctx.Config().HostToolPath(ctx, "tool"))
with:
cmd.BuiltTool("tool")
And similarly for PrebuiltBuildTool.
Test: m checkbuild
Change-Id: I7d63188505362c7df6a3b3e7330b4a2cca5a2409
Diffstat (limited to 'python/proto.go')
-rw-r--r-- | python/proto.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/proto.go b/python/proto.go index 85ed1a517..b71e047a5 100644 --- a/python/proto.go +++ b/python/proto.go @@ -34,7 +34,7 @@ func genProto(ctx android.ModuleContext, protoFile android.Path, flags android.P // Proto generated python files have an unknown package name in the path, so package the entire output directory // into a srcszip. zipCmd := rule.Command(). - Tool(ctx.Config().HostToolPath(ctx, "soong_zip")). + BuiltTool(ctx, "soong_zip"). FlagWithOutput("-o ", srcsZipFile) if pkgPath != "" { zipCmd.FlagWithArg("-P ", pkgPath) |