Skip to content

Commit 7789430

Browse files
committed
aix: select clang for Node.26+ builds
1 parent 7c370dd commit 7789430

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

ansible/roles/baselayout/tasks/partials/ccache/aix.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
- g++-10
6262
- gcc-12
6363
- g++-12
64+
- clang
65+
- clang++
6466

6567
- name: "ccache : cleanup - aix tarball"
6668
file:

jenkins/scripts/select-compiler.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ fi
3636
# Gradual transition to Clang from Node.js 25 (https://github.com/nodejs/build/issues/4091).
3737
if [ "$NODEJS_MAJOR_VERSION" -ge "25" ]; then
3838
case $NODE_NAME in
39+
*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
46+
;;
3947
*fedora*)
4048
echo "Using Clang for Node.js $NODEJS_MAJOR_VERSION"
4149
export CC="ccache clang"

0 commit comments

Comments
 (0)