We include the target and build OS as part of our Options used to compile and link:
which is printed after running ./configure
i.e:
Building for macOS on macOS
0 target os = darwin
1 build os = darwin
Building for Windows on Linux
0 target os = windows
1 build os =
Building for Linux on Linux
0 target os = linux
1 build os =
Notice build os
is currently only ever set when building for darwin (host or cross-compile). This is because it’s the only target for which we actually set the $BUILD_OS
variable for in configure (It’s used to set BUILD_DARWIN
which is then used in our makefiles).
We could improve this so that a build and target os are always printed for all build combinations. Feel free to ping me if you have any Qs.