cmd/gomobile: pass the -x flag to go build if set
Change-Id: I5a5c8cee5cf4683d01af2bf351ac43eb3695f89a Reviewed-on: https://go-review.googlesource.com/5192 Reviewed-by: Andrew Gerrand <adg@golang.org> Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
parent
6d45c43cd0
commit
9760c0641e
@ -323,6 +323,9 @@ func gobuild(src, libPath string) error {
|
|||||||
if buildI {
|
if buildI {
|
||||||
gocmd.Args = append(gocmd.Args, "-i")
|
gocmd.Args = append(gocmd.Args, "-i")
|
||||||
}
|
}
|
||||||
|
if buildX {
|
||||||
|
gocmd.Args = append(gocmd.Args, "-x")
|
||||||
|
}
|
||||||
|
|
||||||
gocmd.Args = append(gocmd.Args, src)
|
gocmd.Args = append(gocmd.Args, src)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user