We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f03b333 commit d2c1263Copy full SHA for d2c1263
src/cmd/dist/build.go
@@ -1425,14 +1425,15 @@ func cmdbootstrap() {
1425
}
1426
1427
func wrapperPathFor(goos, goarch string) string {
1428
- if goos == gohostos && goarch == gohostarch {
1429
- return ""
1430
- }
1431
switch {
1432
case goos == "android":
1433
- return pathf("%s/misc/android/go_android_exec.go", goroot)
+ if gohostos != "android" {
+ return pathf("%s/misc/android/go_android_exec.go", goroot)
+ }
1434
case goos == "darwin" && (goarch == "arm" || goarch == "arm64"):
1435
- return pathf("%s/misc/ios/go_darwin_arm_exec.go", goroot)
+ if gohostos != "darwin" || (gohostarch != "arm" && gohostarch != "arm64") {
+ return pathf("%s/misc/ios/go_darwin_arm_exec.go", goroot)
1436
1437
1438
return ""
1439
0 commit comments