Skip to content

Instantly share code, notes, and snippets.

@cotsog
Created July 31, 2015 16:09
Show Gist options
  • Save cotsog/3ce84675af0d74438d91 to your computer and use it in GitHub Desktop.
Save cotsog/3ce84675af0d74438d91 to your computer and use it in GitHub Desktop.
.travis.yml for gcc-5 compiler support on Travis CI
sudo: required
script:
- sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-5 /usr/bin/gcc
- gcc --version
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
@abigailbunyan
Copy link

For anybody else's sake: The default g++ in Trusty fully supports C++11 language features, but the libstdc++ that's installed alongside g++-5 is the first that's feature complete for C++11 library features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment