Linux: Add GCC versions visible in versions.txt

Currently only SLES and openSUSE has GCC in versions.txt.
Will also make GCC versions visible in Tools and Versions pages.

Task-number: QTQAINFRA-5901
Pick-to: 6.8 6.5
Change-Id: I9742c3151e074c503947018a0c7f7c2e0c1077bd
Reviewed-by: Ville-Pekka Karhu <ville-pekka.karhu@qt.io>
(cherry picked from commit 5f627786ef)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Tero Heikkinen
2025-01-10 09:39:34 +02:00
committed by Qt Cherry-pick Bot
parent b8778d4e63
commit 207ba9b605
19 changed files with 43 additions and 7 deletions

View File

@@ -113,7 +113,7 @@ sudo zypper -nq install libtommath-devel
# For tst_license.pl with all the machines generating SBOM
sudo zypper -nq install perl-JSON
gccVersion="$(gcc --version |grep gcc |cut -b 17-23)"
gccVersion="$(gcc --version |grep -Eo '[0-9]+\.[0-9]+(\.[0-9]+)?' |head -n 1)"
echo "GCC = $gccVersion" >> versions.txt
OpenSSLVersion="$(openssl-3 version |cut -b 9-14)"