diff --git a/src/python/grpcio/commands.py b/src/python/grpcio/commands.py index 58ab57be4767f..6d8228ffa052a 100644 --- a/src/python/grpcio/commands.py +++ b/src/python/grpcio/commands.py @@ -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)