From a1568d4f618650e51fbbe127cf39a06b3f9ea742 Mon Sep 17 00:00:00 2001 From: Alexey Ochapov Date: Tue, 3 Nov 2020 20:41:02 +0300 Subject: [PATCH] fail build on arm gcc 6 --- .travis.yml | 14 ++++++++++++++ test/CMakeLists.txt | 1 + 2 files changed, 15 insertions(+) diff --git a/.travis.yml b/.travis.yml index ff9d167b61fc2..0ed40bc98b990 100644 --- a/.travis.yml +++ b/.travis.yml @@ -58,6 +58,20 @@ matrix: packages: - g++-8 + # ARM g++ 6 on Linux with C++17 + - env: COMPILER=g++-6 BUILD=Debug STANDARD=17 + 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 7ae5659de6a54..b8e3b430f33e4 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -83,6 +83,7 @@ function(add_fmt_test name) if (FMT_WERROR) target_compile_options(${name} PRIVATE ${WERROR_FLAG}) endif () + target_compile_options(${name} PRIVATE -fvisibility=hidden -Werror=attributes) target_include_directories(${name} SYSTEM PUBLIC gtest gmock) add_test(NAME ${name} COMMAND ${name}) endfunction()