Skip to content

Commit e22aad1

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 b483b5a commit e22aad1

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
@@ -610,7 +610,7 @@
610610
],
611611
}, { # else it's `AIX`
612612
'variables': {
613-
'gcc_major': '<!(<(python) -c "import os; import subprocess; CXX=os.environ.get(\'CXX\', \'g++\'); subprocess.run([CXX, \'-dumpversion\'])")'
613+
'gcc_major': '<!(sh -c "${CXX:-g++} -dumpversion")'
614614
},
615615
# Disable the following compiler warning:
616616
#

0 commit comments

Comments
 (0)