Hi Ian, Thanks for responding! What I am looking for is to build only steps:
##### Building Go bootstrap tool. ##### Building Go toolchain using ##### Building go_bootstrap for host And then stop and be able to use the freshly produced go binary. No packages are going to be build, as I only need the runtime to test my changes. Where is the go binary produced at this point? On Monday, March 20, 2017 at 4:16:05 PM UTC-7, Ian Lance Taylor wrote: > > On Sun, Mar 19, 2017 at 3:29 PM, <[email protected] <javascript:>> > 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
