Skip to content
Merged
Changes from 1 commit
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
13 changes: 8 additions & 5 deletions jenkins/scripts/select-compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,14 @@ fi
if [ "$NODEJS_MAJOR_VERSION" -ge "25" ]; then
case $NODE_NAME in
*aix*)
echo "Using Clang for Node.js $NODEJS_MAJOR_VERSION"
export PATH="/opt/ccache-3.7.4/libexec:/opt/clang+llvm-20.1.7-powerpc64-ibm-aix-7.2/bin/:$PATH"
export CC="clang"
export CXX="clang++"
echo "Compiler set to Clang" `${CXX} -dumpversion`
# AIX does not support building v25 with clang so restrict to >25
if [ "$NODEJS_MAJOR_VERSION" -ge "26" ]; then
echo "Using Clang for Node.js $NODEJS_MAJOR_VERSION"
export PATH="/opt/ccache-3.7.4/libexec:/opt/clang+llvm-20.1.7-powerpc64-ibm-aix-7.2/bin/:$PATH"
export CC="clang"
export CXX="clang++"
echo "Compiler set to Clang" `${CXX} -dumpversion`
fi
return
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may need the return to be inside the if block for the fall through to work as expected.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

;;
*fedora*)
Expand Down