Skip to content

Commit

Permalink
temp: fail build on gcc 6
Browse files Browse the repository at this point in the history
  • Loading branch information
alexezeder committed Nov 3, 2020
1 parent eb52ac7 commit 574cd27
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 574cd27

Please sign in to comment.