Re: [go-nuts] what +build flags do I need to distinguish between ios and macos please?

2019-03-23 Thread whitehexagon via golang-nuts
ah yes thanks, amd64, it was late :)

So if I build a shared lib, it might be running in the emulator, on a 
device, or on my mac...

I found some code referencing ios, does this look valid?

// +build ios,darwin,amd64
// +build ios,darwin,arm64 ios,darwin,arm
// +build !ios,darwin,amd64

Peter

-- 
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.


Re: [go-nuts] what +build flags do I need to distinguish between ios and macos please?

2019-03-22 Thread Ian Lance Taylor
On Fri, Mar 22, 2019 at 5:04 PM whitehexagon via golang-nuts
 wrote:
>
> I'm experimenting with some cross platform development in Go.  btw loving the 
> WASM support!
>
> so for mac desktop I'm using // +build darwin,386
> for android I can see a GOOS android value, so I'm guessing +build 
> android,386 for the emulator? and +build android,arm for device?
> but I cant work out what I need for iOS
>
> any tips please?

At present we're testing on GOARCH.  GOOS=darwin for both macOS and
iOS.  GOARCH=amd64 for macOS.  GOARCH=arm or arm64 for iOS.

We'll have to change that if Apple starts shipping x86
phones/watches/TVs or arm64 laptops/desktops/minis.

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.