You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I intend to compile some code that include only ios implementation, and excluding darwin implementation.
But I found when I give GOOS=ios my darwin code is also compiled in.
I created a minimal demo folder like this
$ ls
test.go test_darwin.go test_ios.go
If I run go list with GOOS=dardwin, I get
$GOOS=darwin go list -f '{{.GoFiles}}'
[test.go test_darwin.go]
If I run go list with GOOS=ios, I get
$ GOOS=ios go list -f '{{.GoFiles}}'
[test.go test_darwin.go test_ios.go]
What did you expect to see?
$ GOOS=ios go list -f '{{.GoFiles}}'
[test.go test_ios.go]
What did you see instead?
$ GOOS=ios go list -f '{{.GoFiles}}'
[test.go test_darwin.go test_ios.go]
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I intend to compile some code that include only ios implementation, and excluding darwin implementation.
But I found when I give GOOS=ios my darwin code is also compiled in.
I created a minimal demo folder like this
If I run go list with GOOS=dardwin, I get
If I run go list with GOOS=ios, I get
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: