gyp: aix: change gcc version detection so CXX="ccache g++" works

Signed-off-by: Stewart X Addison <sxa@ibm.com>
PR-URL: https://github.com/nodejs/node/pull/61464
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
Stewart X Addison authored and Antoine du Hamel committed 2026-01-28 16:29:45 +01:00
1 parent b483b5a8ea
commit e22aad19e0
1 file changed
+1 -1
+1 -1
View File
@@ -610,7 +610,7 @@
],
}, { # else it's `AIX`
'variables': {
'gcc_major': '<!(<(python) -c "import os; import subprocess; CXX=os.environ.get(\'CXX\', \'g++\'); subprocess.run([CXX, \'-dumpversion\'])")'
'gcc_major': '<!(sh -c "${CXX:-g++} -dumpversion")'
},
# Disable the following compiler warning:
#