Re: [go-nuts] Conditional compiling for android

2016-08-30 Thread Sapna Todwal
I already tried this and it doesn't work . Also I need a way to enable certain code only for pure android and not linux. Any suggestions ?? On Mon, Aug 29, 2016 at 12:14 PM, andrey mirtchovski wrote: > you can do this for the pure linux stuff: > > // +build !android,linux > -- You received thi

[go-nuts] Conditional compiling for android

2016-08-29 Thread sapna . todwal
As per the documentation in https://golang.org/pkg/go/build/ : Using GOOS=android matches build tags and files as for GOOS=linux in addition to android tags and files. So what if I want to compile a file on android but not for linux, because I have multiple targets , one of them being linux a