diff --git a/jenkins/scripts/select-compiler.sh b/jenkins/scripts/select-compiler.sh index dbed409b0..336c13b0a 100644 --- a/jenkins/scripts/select-compiler.sh +++ b/jenkins/scripts/select-compiler.sh @@ -47,6 +47,16 @@ case $NODE_NAME in ;; *) echo "Setting compiler for Node.js $NODEJS_MAJOR_VERSION on" `cat /etc/redhat-release` + if [ "$NODEJS_MAJOR_VERSION" -gt "21" ]; then + # s390x, use later toolset to avoid https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106355 + if [ "$SELECT_ARCH" = "S390X" ]; then + . /opt/rh/gcc-toolset-12/enable + export CC="ccache gcc" + export CXX="ccache g++" + echo "Selected compiler:" `${CXX} -dumpversion` + return + fi + fi if [ "$NODEJS_MAJOR_VERSION" -gt "19" ]; then . /opt/rh/gcc-toolset-10/enable export CC="ccache gcc"