From fe935cc159a5d7423d176c3c12f8c0f05d61d94b Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Fri, 21 Jun 2024 13:17:07 +0100 Subject: [PATCH] jenkins: select gcc12 on AIX for Node.js >=23 --- jenkins/scripts/select-compiler.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/jenkins/scripts/select-compiler.sh b/jenkins/scripts/select-compiler.sh index c4b1261bf..5fa35434c 100644 --- a/jenkins/scripts/select-compiler.sh +++ b/jenkins/scripts/select-compiler.sh @@ -161,7 +161,9 @@ elif [ "$SELECT_ARCH" = "IBMI73" ]; then echo "Compiler set to $COMPILER_LEVEL" elif [ "$SELECT_ARCH" = "AIXPPC" ]; then - if [ "$NODEJS_MAJOR_VERSION" -gt "19" ]; then + if [ "$NODEJS_MAJOR_VERSION" -gt "22" ]; then + export COMPILER_LEVEL="12" + elif [ "$NODEJS_MAJOR_VERSION" -gt "19" ]; then export COMPILER_LEVEL="10" elif [ "$NODEJS_MAJOR_VERSION" -gt "15" ]; then export COMPILER_LEVEL="8" @@ -171,17 +173,22 @@ elif [ "$SELECT_ARCH" = "AIXPPC" ]; then case $NODE_NAME in *aix73* ) - echo "Setting compiler for Node version $NODEJS_MAJOR_VERSION on AIX 7.3" + export AIX_VERSION=7.3 ;; *aix72* ) - echo "Setting compiler for Node version $NODEJS_MAJOR_VERSION on AIX 7.2" + export AIX_VERSION=7.2 ;; esac + echo "Setting compiler for Node version $NODEJS_MAJOR_VERSION on AIX $AIX_VERSION" export CC="gcc-${COMPILER_LEVEL}" export CXX="g++-${COMPILER_LEVEL}" export LINK="g++-${COMPILER_LEVEL}" - unset LIBPATH + if [ "$COMPILER_LEVEL" -ne "10" ]; then + export LIBPATH=/opt/freeware/lib/gcc/powerpc-ibm-aix$AIX_VERSION.0.0/$COMPILER_LEVEL/pthread/ppc64:/opt/freeware/lib:/usr/lib:/lib + else + unset LIBPATH + fi export PATH="/opt/ccache-3.7.4/libexec:/opt/freeware/bin:$PATH" echo "Compiler set to GCC" `$CXX -dumpversion`