From e8d45d72722431bca20391462678ead80eba336d Mon Sep 17 00:00:00 2001 From: Abdirahim Musse <33973272+abmusse@users.noreply.github.com> Date: Fri, 13 Sep 2024 22:39:25 +0000 Subject: [PATCH] jenkins: select gcc12 for Node 23 on IBM i (#3908) Refs: https://github.com/nodejs/build/issues/3806 Refs: https://github.com/nodejs/build/pull/3907 --- jenkins/scripts/select-compiler.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jenkins/scripts/select-compiler.sh b/jenkins/scripts/select-compiler.sh index 0b4d871d9..b2fb34598 100644 --- a/jenkins/scripts/select-compiler.sh +++ b/jenkins/scripts/select-compiler.sh @@ -192,7 +192,11 @@ elif [ "$SELECT_ARCH" = "S390X" ]; then fi elif [ "$SELECT_ARCH" = "IBMI73" ]; then - export COMPILER_LEVEL="10" + if [ "$NODEJS_MAJOR_VERSION" -gt "22" ]; then + export COMPILER_LEVEL="12" + else + export COMPILER_LEVEL="10" + fi echo "Setting compiler for Node version $NODEJS_MAJOR_VERSION on IBMI73" export CC="ccache gcc-${COMPILER_LEVEL}" export CXX="ccache g++-${COMPILER_LEVEL}"