diff --git a/jenkins/scripts/select-compiler.sh b/jenkins/scripts/select-compiler.sh index c4b1261bf..9d9b71958 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/lib64:/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`