Disable Debug symbols in CI to reduce the ccache size

This commit is contained in:
Vladyslav Usenko 2019-06-09 18:49:03 +00:00
parent 452780ee89
commit f5e669f93f
2 changed files with 8 additions and 6 deletions

View File

@ -94,7 +94,7 @@ bionic-release-compile:
only: only:
- master - master
variables: variables:
CXX_MARCH: 'corei7-avx' CXX_MARCH: 'sandybridge'
DEB_DIR: deb_bionic DEB_DIR: deb_bionic
artifacts: artifacts:
paths: paths:
@ -109,7 +109,7 @@ xenial-release-compile:
only: only:
- master - master
variables: variables:
CXX_MARCH: 'corei7-avx' CXX_MARCH: 'sandybridge'
DEB_DIR: deb_xenial DEB_DIR: deb_xenial
artifacts: artifacts:
paths: paths:
@ -122,13 +122,13 @@ bionic-debug-compile:
only: only:
- master - master
variables: variables:
BUILD_TYPE: Debug BUILD_TYPE: CiDebug
bionic-relwithdebinfo-compile: bionic-relwithdebinfo-compile:
<<: *prepare_docker_definition <<: *prepare_docker_definition
<<: *compile_test_package_definition <<: *compile_test_package_definition
variables: variables:
BUILD_TYPE: RelWithDebInfo BUILD_TYPE: CiRelWithDebInfo
elcapitan-relwithdebinfo-compile: elcapitan-relwithdebinfo-compile:
<<: *compile_test_definition <<: *compile_test_definition
@ -136,7 +136,7 @@ elcapitan-relwithdebinfo-compile:
only: only:
- master - master
variables: variables:
BUILD_TYPE: RelWithDebInfo BUILD_TYPE: CiRelWithDebInfo
mojave-relwithdebinfo-compile: mojave-relwithdebinfo-compile:
<<: *compile_test_definition <<: *compile_test_definition
@ -144,7 +144,7 @@ mojave-relwithdebinfo-compile:
only: only:
- master - master
variables: variables:
BUILD_TYPE: RelWithDebInfo BUILD_TYPE: CiRelWithDebInfo
# check if clang-format would make any changes # check if clang-format would make any changes
clang-format: 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_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_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_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 # base set of compile flags
set(BASALT_CXX_FLAGS "-Wall -Wextra -Werror -Wno-unused-parameter -ftemplate-backtrace-limit=0") set(BASALT_CXX_FLAGS "-Wall -Wextra -Werror -Wno-unused-parameter -ftemplate-backtrace-limit=0")