golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
123.02k stars 17.54k forks source link

x/mobile: add option to pass in gobind #37146

Open lolgear opened 4 years ago

lolgear commented 4 years ago
% ~/go/bin/gomobile bind -target iOS ./lib

will not work until you set PATH environment variable which points to gobind. It is something that I don't expect.

I expect that ~/go/bin/gomobile init will fix all issues and everything will be fine. Could you add option to set path to binary gobind?

% ~/go/bin/gomobile bind -bin ~/go/bin/gobind -target iOS ./lib
dmitshur commented 4 years ago

/cc @hyangah @hajimehoshi