Skip to content
Open
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
8 changes: 8 additions & 0 deletions jenkins/scripts/select-compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ if [ "$DONTSELECT_COMPILER" != "DONT" ]; then
*arm64* ) SELECT_ARCH=ARM64 ;;
*armv7l* ) SELECT_ARCH=ARMV7L ;;
*ibmi74* ) SELECT_ARCH=IBMI74 ;;
*riscv64* ) SELECT_ARCH=RISCV64 ;;
esac
fi

Expand All @@ -36,6 +37,13 @@ fi
# Gradual transition to Clang from Node.js 25 (https://github.com/nodejs/build/issues/4091).
if [ "$NODEJS_MAJOR_VERSION" -ge "25" ]; then
case $NODE_NAME in
*riscv64*)
echo "Using Clang for Node.js $NODEJS_MAJOR_VERSION"
export CC="ccache clang-21"
export CXX="ccache clang++-21"
echo "Compiler set to Clang" `${CXX} -dumpversion`
return
;;
*aix*)
# AIX does not support building v25 with clang so restrict to >25
if [ "$NODEJS_MAJOR_VERSION" -ge "26" ]; then
Expand Down