File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1425,14 +1425,15 @@ func cmdbootstrap() {
1425
1425
}
1426
1426
1427
1427
func wrapperPathFor (goos , goarch string ) string {
1428
- if goos == gohostos && goarch == gohostarch {
1429
- return ""
1430
- }
1431
1428
switch {
1432
1429
case goos == "android" :
1433
- return pathf ("%s/misc/android/go_android_exec.go" , goroot )
1430
+ if gohostos != "android" {
1431
+ return pathf ("%s/misc/android/go_android_exec.go" , goroot )
1432
+ }
1434
1433
case goos == "darwin" && (goarch == "arm" || goarch == "arm64" ):
1435
- return pathf ("%s/misc/ios/go_darwin_arm_exec.go" , goroot )
1434
+ if gohostos != "darwin" || (gohostarch != "arm" && gohostarch != "arm64" ) {
1435
+ return pathf ("%s/misc/ios/go_darwin_arm_exec.go" , goroot )
1436
+ }
1436
1437
}
1437
1438
return ""
1438
1439
}
You can’t perform that action at this time.
0 commit comments