complete the compiler set (gcc 6/7/8 + clang 4/5/6)

This commit is contained in:
Crzyrndm 2018-07-14 21:19:54 +12:00
parent 6b0fb72e78
commit 25d75cb5c3
2 changed files with 42 additions and 5 deletions

View File

@ -12,6 +12,7 @@ notifications:
# set up build matrix # set up build matrix
matrix: matrix:
include: include:
# ============= CODE COVERAGE ===============
# gcc-6, c++11, debug build, static linking, code coverage enabled # gcc-6, c++11, debug build, static linking, code coverage enabled
- os: linux - os: linux
compiler: gcc compiler: gcc
@ -29,7 +30,8 @@ matrix:
- COVERAGE=ON - COVERAGE=ON
- STATIC=ON - STATIC=ON
- SAMPLES=OFF - SAMPLES=OFF
# ============= GCC ==================
# gcc-6, c++11, debug build, dynamic linking # gcc-6, c++11, debug build, dynamic linking
- os: linux - os: linux
compiler: gcc compiler: gcc
@ -46,7 +48,24 @@ matrix:
- COVERAGE=OFF - COVERAGE=OFF
- STATIC=OFF - STATIC=OFF
- SAMPLES=OFF - SAMPLES=OFF
# gcc-8, c++11, release build, static linking, samples + benchmarks compiled
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- CXX_COMPILER=g++-7
- C_COMPILER=gcc-7
- BUILD_TYPE=Release
- COVERAGE=OFF
- STATIC=ON
- SAMPLES=ON
# gcc-8, c++11, release build, static linking, samples + benchmarks compiled # gcc-8, c++11, release build, static linking, samples + benchmarks compiled
- os: linux - os: linux
compiler: gcc compiler: gcc
@ -64,7 +83,8 @@ matrix:
- STATIC=ON - STATIC=ON
- SAMPLES=ON - SAMPLES=ON
# clang 4, c++11, release build, dynamic linking, samples + benchmarks compiled # =========== CLANG =============
# clang 4, c++11, release build, dynamic linking
- os: linux - os: linux
compiler: clang compiler: clang
addons: addons:
@ -81,8 +101,24 @@ matrix:
- COVERAGE=OFF - COVERAGE=OFF
- STATIC=OFF - STATIC=OFF
- SAMPLES=OFF - SAMPLES=OFF
# clang 5, c++11, release build, dynamic linking, samples + benchmarks compiled
# clang 6, c++11, release build, static linking, samples + benchmarks compiled - os: linux
compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- clang-5.0
env:
- CXX_COMPILER=clang++-5.0
- C_COMPILER=clang-5.0
- BUILD_TYPE=Release
- COVERAGE=OFF
- STATIC=ON
- SAMPLES=ON
# clang 6, c++11, release build, static linking, samples compiled
- os: linux - os: linux
compiler: clang compiler: clang
addons: addons:

View File

@ -47,6 +47,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-newline-eof") # no longer an issue with post-c++11 standards which mandate include add a newline if neccesary set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-newline-eof") # no longer an issue with post-c++11 standards which mandate include add a newline if neccesary
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-covered-switch-default") # default is often added to switches for completeness or to cover future alternatives set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-covered-switch-default") # default is often added to switches for completeness or to cover future alternatives
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-exit-time-destructors") # this is just a warning to notify that the destructor will run during exit set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-exit-time-destructors") # this is just a warning to notify that the destructor will run during exit
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-missing-braces") # Wmissing-field-initializers has less false positives
endif() endif()
if(STATIC_CRT) if(STATIC_CRT)