Skip to content
Merged
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
13 changes: 13 additions & 0 deletions jenkins/scripts/select-compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@ if [ -z ${NODEJS_MAJOR_VERSION+x} ]; then
NODEJS_MAJOR_VERSION="$(echo "$NODE_VERSION" | cut -d . -f 1)"
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
*fedora*)
echo "Using Clang for Node.js $NODEJS_MAJOR_VERSION"
export CC="ccache clang"
export CXX="ccache clang++"
echo "Compiler set to Clang" `${CXX} -dumpversion`
return
;;
esac
fi

# Linux distros should be arch agnostic
case $NODE_NAME in
*rhel9*|*ubi9*)
Expand Down
Loading