temp: fail build on gcc 6
This commit is contained in:
parent
eb52ac7a35
commit
574cd279bb
14
.travis.yml
14
.travis.yml
@ -58,6 +58,20 @@ matrix:
|
|||||||
packages:
|
packages:
|
||||||
- g++-8
|
- 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
|
# Apple clang on OS X with C++14
|
||||||
- env: BUILD=Debug STANDARD=14
|
- env: BUILD=Debug STANDARD=14
|
||||||
compiler: clang
|
compiler: clang
|
||||||
|
|||||||
@ -83,6 +83,9 @@ function(add_fmt_test name)
|
|||||||
if (FMT_WERROR)
|
if (FMT_WERROR)
|
||||||
target_compile_options(${name} PRIVATE ${WERROR_FLAG})
|
target_compile_options(${name} PRIVATE ${WERROR_FLAG})
|
||||||
endif ()
|
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)
|
target_include_directories(${name} SYSTEM PUBLIC gtest gmock)
|
||||||
add_test(NAME ${name} COMMAND ${name})
|
add_test(NAME ${name} COMMAND ${name})
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user