From 574cd279bb87b6985e46932f0f73e7d087d107d4 Mon Sep 17 00:00:00 2001 From: Alexey Ochapov Date: Tue, 3 Nov 2020 22:34:04 +0300 Subject: [PATCH] temp: fail build on gcc 6 --- .travis.yml | 14 ++++++++++++++ test/CMakeLists.txt | 3 +++ 2 files changed, 17 insertions(+) diff --git a/.travis.yml b/.travis.yml index ff9d167b..b2cfc8a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -58,6 +58,20 @@ matrix: packages: - g++-8 + # ARM g++ 6 on Linux with C++14 + - env: COMPILER=g++-6 BUILD=Debug STANDARD=14 + compiler: gcc + arch: arm64 + os: linux + dist: xenial + addons: + apt: + update: true + sources: + - ubuntu-toolchain-r-test + packages: + - g++-6 + # Apple clang on OS X with C++14 - env: BUILD=Debug STANDARD=14 compiler: clang diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 7ae5659d..64e4d037 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -83,6 +83,9 @@ function(add_fmt_test name) if (FMT_WERROR) target_compile_options(${name} PRIVATE ${WERROR_FLAG}) endif () + if (CMAKE_CXX_COMPILER_ID MATCHES "GNU") + target_compile_options(${name} PRIVATE -fvisibility=hidden -Werror=attributes) + endif() target_include_directories(${name} SYSTEM PUBLIC gtest gmock) add_test(NAME ${name} COMMAND ${name}) endfunction()