Merge branch 'ci_no_debug_symbols' into 'master'

Disable Debug symbols in CI to reduce the ccache size

See merge request basalt/basalt!15
This commit is contained in:
Vladyslav Usenko 2019-06-09 18:49:04 +00:00
commit 88ea17d404
2 changed files with 8 additions and 6 deletions

View File

@ -94,7 +94,7 @@ bionic-release-compile:
only:
- master
variables:
CXX_MARCH: 'corei7-avx'
CXX_MARCH: 'sandybridge'
DEB_DIR: deb_bionic
artifacts:
paths:
@ -109,7 +109,7 @@ xenial-release-compile:
only:
- master
variables:
CXX_MARCH: 'corei7-avx'
CXX_MARCH: 'sandybridge'
DEB_DIR: deb_xenial
artifacts:
paths:
@ -122,13 +122,13 @@ bionic-debug-compile:
only:
- master
variables:
BUILD_TYPE: Debug
BUILD_TYPE: CiDebug
bionic-relwithdebinfo-compile:
<<: *prepare_docker_definition
<<: *compile_test_package_definition
variables:
BUILD_TYPE: RelWithDebInfo
BUILD_TYPE: CiRelWithDebInfo
elcapitan-relwithdebinfo-compile:
<<: *compile_test_definition
@ -136,7 +136,7 @@ elcapitan-relwithdebinfo-compile:
only:
- master
variables:
BUILD_TYPE: RelWithDebInfo
BUILD_TYPE: CiRelWithDebInfo
mojave-relwithdebinfo-compile:
<<: *compile_test_definition
@ -144,7 +144,7 @@ mojave-relwithdebinfo-compile:
only:
- master
variables:
BUILD_TYPE: RelWithDebInfo
BUILD_TYPE: CiRelWithDebInfo
# check if clang-format would make any changes
clang-format:

View File

@ -89,6 +89,8 @@ set(BASALT_PASSED_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -DEIGEN_INITIALIZE_MATRICES_BY_NAN") # cmake default: "-g"
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g -DEIGEN_INITIALIZE_MATRICES_BY_NAN") # cmake default: "-O2 -g -DNDEBUG"
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG") # cmake default: "-O3 -DNDEBUG"
set(CMAKE_CXX_FLAGS_CIDEBUG "-O0 -DEIGEN_INITIALIZE_MATRICES_BY_NAN") # CI version with no debug symbols
set(CMAKE_CXX_FLAGS_CIRELWITHDEBINFO "-O3 -DEIGEN_INITIALIZE_MATRICES_BY_NAN") # CI version with no debug symbols
# base set of compile flags
set(BASALT_CXX_FLAGS "-Wall -Wextra -Werror -Wno-unused-parameter -ftemplate-backtrace-limit=0")