Skip to content

Commit b0ae89c

Browse files
authored
gyp: aix: change gcc version detection so CXX="ccache g++" works
Signed-off-by: Stewart X Addison <[email protected]> PR-URL: #61464 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent ec56413 commit b0ae89c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@
598598
],
599599
}, { # else it's `AIX`
600600
'variables': {
601-
'gcc_major': '<!(<(python) -c "import os; import subprocess; CXX=os.environ.get(\'CXX\', \'g++\'); subprocess.run([CXX, \'-dumpversion\'])")'
601+
'gcc_major': '<!(sh -c "${CXX:-g++} -dumpversion")'
602602
},
603603
# Disable the following compiler warning:
604604
#

0 commit comments

Comments
 (0)