We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7abcb48 commit cf880efCopy full SHA for cf880ef
1 file changed
jenkins/scripts/select-compiler.sh
@@ -33,6 +33,19 @@ if [ -z ${NODEJS_MAJOR_VERSION+x} ]; then
33
NODEJS_MAJOR_VERSION="$(echo "$NODE_VERSION" | cut -d . -f 1)"
34
fi
35
36
+# Gradual transition to Clang from Node.js 25 (https://github.com/nodejs/build/issues/4091).
37
+if [ "$NODEJS_MAJOR_VERSION" -ge "25" ]; then
38
+ case $NODE_NAME in
39
+ *fedora*)
40
+ echo "Using Clang for Node.js $NODEJS_MAJOR_VERSION"
41
+ export CC="ccache clang"
42
+ export CXX="ccache clang++"
43
+ echo "Compiler set to Clang" `${CXX} -dumpversion`
44
+ return
45
+ ;;
46
+ esac
47
+fi
48
+
49
# Linux distros should be arch agnostic
50
case $NODE_NAME in
51
*rhel9*|*ubi9*)
0 commit comments