Merge "Add build-command arg to soong_ui."
This commit is contained in:
commit
ea80b16cd9
1 changed files with 6 additions and 0 deletions
|
@ -741,6 +741,12 @@ func (c *configImpl) parseArgs(ctx Context, args []string) {
|
||||||
c.bazelStagingMode = true
|
c.bazelStagingMode = true
|
||||||
} else if arg == "--search-api-dir" {
|
} else if arg == "--search-api-dir" {
|
||||||
c.searchApiDir = true
|
c.searchApiDir = true
|
||||||
|
} else if strings.HasPrefix(arg, "--build-command=") {
|
||||||
|
buildCmd := strings.TrimPrefix(arg, "--build-command=")
|
||||||
|
// remove quotations
|
||||||
|
buildCmd = strings.TrimPrefix(buildCmd, "\"")
|
||||||
|
buildCmd = strings.TrimSuffix(buildCmd, "\"")
|
||||||
|
ctx.Metrics.SetBuildCommand([]string{buildCmd})
|
||||||
} else if len(arg) > 0 && arg[0] == '-' {
|
} else if len(arg) > 0 && arg[0] == '-' {
|
||||||
parseArgNum := func(def int) int {
|
parseArgNum := func(def int) int {
|
||||||
if len(arg) > 2 {
|
if len(arg) > 2 {
|
||||||
|
|
Loading…
Reference in a new issue