File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -383,6 +383,12 @@ func xsamefile(f1, f2 string) bool {
383
383
}
384
384
385
385
func xgetgoarm () string {
386
+ if goos == "android" {
387
+ // Assume all android devices have VFPv3.
388
+ // These ports are also mostly cross-compiled, so it makes little
389
+ // sense to auto-detect the setting.
390
+ return "7"
391
+ }
386
392
if gohostarch != "arm" || goos != gohostos {
387
393
// Conservative default for cross-compilation.
388
394
return "5"
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ const (
41
41
42
42
func goarm () int {
43
43
def := defaultGOARM
44
- if GOOS == "android" {
45
- // Android devices always support GOARM=7.
44
+ if GOOS == "android" && GOARCH == "arm" {
45
+ // Android arm devices always support GOARM=7.
46
46
def = "7"
47
47
}
48
48
switch v := envOr ("GOARM" , def ); v {
You can’t perform that action at this time.
0 commit comments