On Wed, Aug 1, 2012 at 9:29 AM, Steven Robertson
<
stevero...@gmail.com> wrote:
> I'm not sure I know what you mean. I thought that's what I'm doing.
>
> I found this link which maybe the change to provide this feature on the cgo
> directive:
>
http://codereview.appspot.com/4121048/
>
> It's helpful at least because it's the only other example I could find:
>
> // #cgo linux/amd64 CFLAGS: -DLINUX_ON_AMD64=1
>
> I wasn't even sure what values for $GOOS and $GOARCH are allowed, but I
> figure that 'linux', 'darwin' and 'windows' are all allowed and use 'amd64'
> for 64-bit x86 and '386' to match against 32-bit x86. It would be good to
> have more examples, but so far as I can see what I've done is correct so
> maybe it's a bug. I'm so new to this that I am not at all sure.