Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jenkins: select gcc12 on AIX for Node.js >=23 #3858

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions jenkins/scripts/select-compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,27 +174,26 @@ 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"
elif [ "$NODEJS_MAJOR_VERSION" -gt "9" ]; then
export COMPILER_LEVEL="6"
fi

case $NODE_NAME in
*aix73* )
echo "Setting compiler for Node version $NODEJS_MAJOR_VERSION on AIX 7.3"
;;
*aix72* )
echo "Setting compiler for Node version $NODEJS_MAJOR_VERSION on AIX 7.2"
;;
esac

export AIX_VERSION=`oslevel`
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/$COMPILER_LEVEL/pthread:/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