Skip to content

Commit

Permalink
jenkins: select gcc12 on AIX for Node.js >=23
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlau committed Jun 21, 2024
1 parent 6f298d5 commit fedf81d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions jenkins/scripts/select-compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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`

Expand Down

0 comments on commit fedf81d

Please sign in to comment.