Skip to content

Commit 7ef34ea

Browse files
authored
restrict AIX use of clang to 26+ instead of 25+ (#4307)
* restrict AIX use of clang to 26+ instead of 25+ Signed-off-by: Stewart X Addison <sxa@ibm.com>
1 parent 634c36d commit 7ef34ea

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

jenkins/scripts/select-compiler.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,15 @@ fi
3737
if [ "$NODEJS_MAJOR_VERSION" -ge "25" ]; then
3838
case $NODE_NAME in
3939
*aix*)
40-
echo "Using Clang for Node.js $NODEJS_MAJOR_VERSION"
41-
export PATH="/opt/ccache-3.7.4/libexec:/opt/clang+llvm-20.1.7-powerpc64-ibm-aix-7.2/bin/:$PATH"
42-
export CC="clang"
43-
export CXX="clang++"
44-
echo "Compiler set to Clang" `${CXX} -dumpversion`
45-
return
40+
# AIX does not support building v25 with clang so restrict to >25
41+
if [ "$NODEJS_MAJOR_VERSION" -ge "26" ]; then
42+
echo "Using Clang for Node.js $NODEJS_MAJOR_VERSION"
43+
export PATH="/opt/ccache-3.7.4/libexec:/opt/clang+llvm-20.1.7-powerpc64-ibm-aix-7.2/bin/:$PATH"
44+
export CC="clang"
45+
export CXX="clang++"
46+
echo "Compiler set to Clang" `${CXX} -dumpversion`
47+
return
48+
fi
4649
;;
4750
*fedora*)
4851
echo "Using Clang for Node.js $NODEJS_MAJOR_VERSION"

0 commit comments

Comments
 (0)