Add Distro.gcc_version
Exposes the default gcc major.minor version shipped by each distribution.
Lets consumers gate per-distro workarounds (e.g. the GCC 15
default-`-std=gnu23` change that breaks OCaml < 5.1) on the actual
compiler version rather than maintaining a hand-written list of affected
distros.
Versions were measured by booting each Docker image and running
`gcc --version` after installing the distro's gcc/gcc-c++ package.
Returns None for Windows/Cygwin (no inherent default gcc on the base
image) and for releases whose images are no longer pullable from
Docker Hub (Ubuntu 15.04, openSUSE Leap 42.1/42.2).
210ec6
-
May 19 07:23 +00:00