On Sun, Mar 19, 2017 at 3:29 PM,  <grusz...@gmail.com> wrote:
>
> I am tinkering with some runtime code and I would like to build only the go
> binary to the test it on a small program I wrote. I don't see any script in
> the source that would allow that, all of these also try to compile the
> standard library. I would like to avoid that, because it's easier for me to
> test my changes first on smaller snippet of code. How can I build only the
> main binary (and where it is going to be available)?

I don't know if I understand you, but I think the answer to your
question is to avoid using the go tool.  Instead of using `go build
x.go` use `go tool compile x.go && go tool link -o x x.o`.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to