File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -884,11 +884,12 @@ func gomobileTool(subcmd string, args ...string) *exec.Cmd {
884
884
"PATH=" + GOBIN + string (os .PathListSeparator ) + os .Getenv ("PATH" ),
885
885
}
886
886
for _ , e := range os .Environ () {
887
- if strings .HasPrefix (e , "GOPATH=" ) || strings .HasPrefix (e , "PATH=" ) {
887
+ if strings .HasPrefix (e , "GOPATH=" ) || strings .HasPrefix (e , "PATH=" ) || strings . HasPrefix ( e , "GOBIN=" ) {
888
888
continue
889
889
}
890
890
cmd .Env = append (cmd .Env , e )
891
891
}
892
+ cmd .Env = append (cmd .Env , "GOBIN=" + GOBIN )
892
893
return cmd
893
894
}
894
895
@@ -957,7 +958,7 @@ func doXCodeFramework(cmdline []string) {
957
958
958
959
if * local {
959
960
// If we're building locally, use the build folder and stop afterwards
960
- bind .Dir , _ = filepath . Abs ( GOBIN )
961
+ bind .Dir = GOBIN
961
962
build .MustRun (bind )
962
963
return
963
964
}
You can’t perform that action at this time.
0 commit comments