Skip to content

Commit 065a002

Browse files
authored
jenkins: select gcc12 on AIX for Node.js >=23 (#3858)
Refs: #3806 Refs: #3773
1 parent fc03e62 commit 065a002

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

jenkins/scripts/select-compiler.sh

+10-11
Original file line numberDiff line numberDiff line change
@@ -174,27 +174,26 @@ elif [ "$SELECT_ARCH" = "IBMI73" ]; then
174174
echo "Compiler set to $COMPILER_LEVEL"
175175

176176
elif [ "$SELECT_ARCH" = "AIXPPC" ]; then
177-
if [ "$NODEJS_MAJOR_VERSION" -gt "19" ]; then
177+
if [ "$NODEJS_MAJOR_VERSION" -gt "22" ]; then
178+
export COMPILER_LEVEL="12"
179+
elif [ "$NODEJS_MAJOR_VERSION" -gt "19" ]; then
178180
export COMPILER_LEVEL="10"
179181
elif [ "$NODEJS_MAJOR_VERSION" -gt "15" ]; then
180182
export COMPILER_LEVEL="8"
181183
elif [ "$NODEJS_MAJOR_VERSION" -gt "9" ]; then
182184
export COMPILER_LEVEL="6"
183185
fi
184186

185-
case $NODE_NAME in
186-
*aix73* )
187-
echo "Setting compiler for Node version $NODEJS_MAJOR_VERSION on AIX 7.3"
188-
;;
189-
*aix72* )
190-
echo "Setting compiler for Node version $NODEJS_MAJOR_VERSION on AIX 7.2"
191-
;;
192-
esac
193-
187+
export AIX_VERSION=`oslevel`
188+
echo "Setting compiler for Node version $NODEJS_MAJOR_VERSION on AIX $AIX_VERSION"
194189
export CC="gcc-${COMPILER_LEVEL}"
195190
export CXX="g++-${COMPILER_LEVEL}"
196191
export LINK="g++-${COMPILER_LEVEL}"
197-
unset LIBPATH
192+
if [ "$COMPILER_LEVEL" -ne "10" ]; then
193+
export LIBPATH=/opt/freeware/lib/gcc/powerpc-ibm-aix$AIX_VERSION/$COMPILER_LEVEL/pthread:/opt/freeware/lib:/usr/lib:/lib
194+
else
195+
unset LIBPATH
196+
fi
198197
export PATH="/opt/ccache-3.7.4/libexec:/opt/freeware/bin:$PATH"
199198
echo "Compiler set to GCC" `$CXX -dumpversion`
200199

0 commit comments

Comments
 (0)