tool/gocross: add android autoflags (#11465)
Updates tailscale/corp#18202 Signed-off-by: James Tucker <james@tailscale.com>
This commit is contained in:
@@ -61,6 +61,8 @@ func autoflagsForTest(argv []string, env *Environment, goroot, nativeGOOS, nativ
|
||||
}
|
||||
|
||||
switch targetOS {
|
||||
case "android":
|
||||
cgo = env.Get("CGO_ENABLED", "0") == "1"
|
||||
case "linux":
|
||||
// Getting Go to build a static binary with cgo enabled is a
|
||||
// minor ordeal. The incantations you apparently need are
|
||||
|
||||
Reference in New Issue
Block a user