From b9720aa65bbd1cbea68aa6a02ca7e4e01cef3cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 23 Feb 2019 18:41:14 -0800 Subject: [PATCH] Try to use a more modern g++. --- .travis.yml | 8 ++++---- test.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 133629b..3c49d41 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,11 +9,11 @@ addons: sources: - ubuntu-toolchain-r-test packages: - - gcc-4.9 - - g++-4.9 -env: - - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9" + - gcc-7 + - g++-7 script: + - export CC=gcc-7 + - export CXX=g++-7 - cargo fmt --all -- --check - cargo build --verbose - cargo test --verbose diff --git a/test.py b/test.py index 9c1e2e1..2d14f77 100755 --- a/test.py +++ b/test.py @@ -48,7 +48,7 @@ def gxx(src): if gxx_bin == None: gxx_bin = 'g++' - subprocess.check_output([gxx_bin, "-D", "DEFINED", "-std=c++11", "-c", src, "-o", "tests/expectations/tmp.o"]) + subprocess.check_output([gxx_bin, "-D", "DEFINED", "-std=c++17", "-c", src, "-o", "tests/expectations/tmp.o"]) os.remove("tests/expectations/tmp.o") def run_compile_test(rust_src, verify, c, style=""):