From 10f75ada19018a859605f3421c36c70aabc5d66e Mon Sep 17 00:00:00 2001 From: Martyn Gigg <martyn.gigg@stfc.ac.uk> Date: Sat, 29 Feb 2020 07:09:10 +0000 Subject: [PATCH] Use devtoolset-7 on RHEL for doctests --- buildconfig/Jenkins/doctests | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/buildconfig/Jenkins/doctests b/buildconfig/Jenkins/doctests index a87f7b9a87f..0a71f60dbe3 100755 --- a/buildconfig/Jenkins/doctests +++ b/buildconfig/Jenkins/doctests @@ -20,6 +20,16 @@ else fi $CMAKE_EXE --version +############################################################################### +# System discovery +############################################################################### +# Setup software collections on rhel7 to allow using gcc7 +if [[ ${NODE_LABELS} == *rhel7* ]] || [[ ${NODE_LABELS} == *centos7* ]] || [[ ${NODE_LABELS} == *scilin7* ]]; then + SCL_ENABLE="scl enable devtoolset-7" +else + SCL_ENABLE="eval" +fi + ##################################################################################### # Find and install package ##################################################################################### @@ -49,7 +59,7 @@ cd $BUILD_DIR # CMake configuration. We only need a minimal configuration as we will actually # just run from the package ############################################################################### -${CMAKE_EXE} -DMANTID_DATA_STORE=${MANTID_DATA_STORE} .. +$SCL_ENABLE "${CMAKE_EXE} -DMANTID_DATA_STORE=${MANTID_DATA_STORE} .." ############################################################################### # Build step -- GitLab