Skip to content

Commit

Permalink
respect CC variable (#26480)
Browse files Browse the repository at this point in the history
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
  • Loading branch information
gyakovlev committed Nov 28, 2022
1 parent 557e558 commit 31fc452
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/python/grpcio/commands.py
Expand Up @@ -228,7 +228,8 @@ def compiler_ok_with_extra_std():
"""
try:
# TODO(lidiz) Remove the generated a.out for success tests.
cc_test = subprocess.Popen(['cc', '-x', 'c', '-std=c++14', '-'],
cc = os.environ.get('CC', 'cc')
cc_test = subprocess.Popen([cc, '-x', 'c', '-std=c++14', '-'],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
Expand Down

0 comments on commit 31fc452

Please sign in to comment.