By default xgo
tries to cross compile to the lowest possible versions of every
supported platform, in order to produce binaries that are portable among various
versions of the same operating system. This however can lead to issues if a used
dependency is only supported by more recent systems. As such, xgo
supports the
selection of specific platform versions by appending them to the OS target string.
--targets=darwin-10.9/*
: cross compile to Mac OS X Mavericks--targets=windows-6.0/*
: cross compile to Windows Vista
The supported platforms are:
- All Windows APIs up to Windows 8.1 limited by
mingw-w64
(API level ids) - OSX APIs in the range of 10.6 - 10.11