respect CC variable (#26480)

Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
pull/31768/head
Georgy Yakovlev 2 years ago committed by GitHub
parent 557e558825
commit 31fc452b68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/python/grpcio/commands.py

@ -228,7 +228,8 @@ class BuildExt(build_ext.build_ext):
"""
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)

Loading…
Cancel
Save