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 and the other one being android.
Any suggestions on this will be greatly appreciated, thanks !
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The build system considers android and Linux to be the same for historical reasons.
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
// +build android// +build !androidGOOS=androidGOARCH=armgo build --tags android <main_package>Constraints may appear in any kind of source file (not just Go), but they must appear near the top of the file, preceded only by blank lines and other line comments. These rules mean that in Go files a build constraint must appear before the package clause.
Partly true.Build tags like !android should prevent inclusion of the file.Files named with _android suffix or with android buildtag should be included only for android.
On Thu, Feb 1, 2018 at 2:40 PM, Dave Cheney <da...@cheney.net> wrote:
The build system considers android and Linux to be the same for historical reasons.
--
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...@googlegroups.com.
--__