Commit 3269028c authored by Markus Frosch's avatar Markus Frosch 😱

rpm: Improve devtoolset detection for cmake

This failed when SCLs were present, but no devtoolset-*
parent 029f30c6
Pipeline #3567 passed with stage
in 18 seconds
......@@ -157,13 +157,14 @@ preconfigure_ccache() {
devtoolsets=''
if [ -d /opt/rh ]; then
devtoolsets="$(cd /opt/rh && ls -d devtoolset-*)"
for devtoolset in $devtoolsets; do
patch_scl_ccache "$devtoolset" "${CCACHE_LINKS}"
if devtoolsets="$(cd /opt/rh && ls -d devtoolset-*)"; then
for devtoolset in $devtoolsets; do
patch_scl_ccache "$devtoolset" "${CCACHE_LINKS}"
IFS=" " read -r -a extra_compilers <<< "$(find_compilers "/opt/rh/${devtoolset}/root/usr/bin")"
compilers+=("${extra_compilers[@]}")
done
IFS=" " read -r -a extra_compilers <<< "$(find_compilers "/opt/rh/${devtoolset}/root/usr/bin")"
compilers+=("${extra_compilers[@]}")
done
fi
fi
echo 'Preparing/Repairing ccache symlinks...'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment