Re: libgo patch committed: Compile examples in _test packages

2020-01-10 Thread Ian Lance Taylor
On Fri, Jan 10, 2020 at 5:40 AM Rainer Orth wrote: > > > This libgo patch compiles examples in _test packages. Previously if > > the only names defined by _test packages were examples, the gotest > > script would emit an incorrect _testmain.go file. I worked around > > that by marking the examp

Re: libgo patch committed: Compile examples in _test packages

2020-01-10 Thread Rainer Orth
Hi Ian, > This libgo patch compiles examples in _test packages. Previously if > the only names defined by _test packages were examples, the gotest > script would emit an incorrect _testmain.go file. I worked around > that by marking the example_test.go files +build ignored. This CL > changes th

libgo patch committed: Compile examples in _test packages

2020-01-09 Thread Ian Lance Taylor
This libgo patch compiles examples in _test packages. Previously if the only names defined by _test packages were examples, the gotest script would emit an incorrect _testmain.go file. I worked around that by marking the example_test.go files +build ignored. This CL changes the gotest script to