Vinnie Falco wrote:
On Mon, Mar 27, 2017 at 11:57 AM, Peter Dimov via Boost
wrote: The .yml file only installs gcc5, it doesn't ask for it. The default gcc/g++ is still the same (4.6). gcc5 is gcc-5/g++-5. I don't know how this needs to be passed to cmake, presumably by setting CC/CXX?
I'm totally clueless when it comes to Linux toolchains. But I don't think that this should be passed to cmake. Instead, the operating system should be configured so that the commands "gcc" and "g++" will use the newer version.
You can install may different g++ versions on Travis simultaneously. The system default is always 4.6. If you install 4.7, 4.8, 4.9, 5 and 6, their corresponding executables are g++-4.7, g++-4.8, g++-4.9, g++-5 and g++-6. Same if you install many versions of Clang (the default one is 3.4).