Skip to content

Commit

Permalink
Try the newest gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii Verbytskyi committed Dec 27, 2024
1 parent 2d5e324 commit a15d753
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,21 @@ stages:
- build_docker_image
- build
########################################################################
newest-gcc:
Fedora40-GNU-latest:
only:
variables:
- $CI_SERVER_HOST=="gitlab.cern.ch"
image: gcc:latest
image: gitlab-registry.cern.ch/hepmc/hepmc3:Fedora_40
tags:
- k8s-cvmfs
stage: build
when: manual
script:
- |
apt -y update
apt-get install -y valgrind python3 python3-dev doxygen protobuf-compiler libprotobuf-dev cmake
dnf copr -y enable -y jwakely/gcc-latest
dnf install -y gcc-latest
export PATH=/opt/gcc-latest/bin:$PATH
export LD_LIBRARY_PATH=/opt/gcc-latest/lib:/opt/gcc-latest/lib64:$LD_LIBRARY_PATH
mkdir BUILD
cd BUILD
set -x
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ set(PGI_CXX_FLAGS_TO_CHECK "-Wc,--pending_instantiations=0;-noswitcherror;--diag
set(NVHPC_CXX_FLAGS_TO_CHECK "-Wc,--pending_instantiations=0;-noswitcherror;--diag_suppress=code_is_unreachable;--diag_suppress=offset_in_non_POD_nonstandard;--diag_suppress=set_but_not_used")
set(Intel_CXX_FLAGS_TO_CHECK "-diag-disable=2196")
set(IntelLLVM_CXX_FLAGS_TO_CHECK "-diag-disable=2196;-Wno-unused-command-line-argument")
set(GNU_CXX_FLAGS_TO_CHECK "-Wno-strict-aliasing;-Wno-unused-command-line-argument;-Wno-gnu-zero-variadic-macro-arguments;-Wno-deprecated-declarations")
set(Clang_CXX_FLAGS_TO_CHECK "-Wno-strict-aliasing;-Wno-unused-command-line-argument;-Wno-gnu-zero-variadic-macro-arguments;-Wno-deprecated-declarations")
set(GNU_CXX_FLAGS_TO_CHECK "-Wno-unused-parameter;-Wno-strict-aliasing;-Wno-unused-command-line-argument;-Wno-gnu-zero-variadic-macro-arguments;-Wno-deprecated-declarations")
set(Clang_CXX_FLAGS_TO_CHECK "-Wno-unused-parameter;-Wno-strict-aliasing;-Wno-unused-command-line-argument;-Wno-gnu-zero-variadic-macro-arguments;-Wno-deprecated-declarations")
set(AppleClang_CXX_FLAGS_TO_CHECK "-Wno-strict-aliasing;-Wno-unused-command-line-argument;-Wno-gnu-zero-variadic-macro-arguments;-Wno-deprecated-declarations")
set(XL_CXX_FLAGS_TO_CHECK "-qsuppress=1500-030")
foreach(fl ${${CMAKE_CXX_COMPILER_ID}_CXX_FLAGS_TO_CHECK})
Expand Down

0 comments on commit a15d753

Please sign in to comment.