Skip to content

Commit 8abd54f

Browse files
sxaaduh95
authored andcommitted
gyp: aix: change gcc version detection so CXX="ccache g++" works
Signed-off-by: Stewart X Addison <sxa@ibm.com> PR-URL: #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>
1 parent 696935e commit 8abd54f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)