unsure what the syntax for using build tags for ‘subtarget’ platforms is
There are no build tags for subtargets.
There is a global constant ODIN_PLATFORM_SUBTARGET which will tell you which subtarget is currently set.
If I understood you correctly, this should be it
#build linux:android, darwin:iphone, darwin:iphonesimulator