#======================================================================================== # From 31fc452b68e429c029f00b5fcc54292a303be0c6 Mon Sep 17 00:00:00 2001 # From: Georgy Yakovlev <168902+gyakovlev@users.noreply.github.com> # Date: Mon, 28 Nov 2022 15:07:36 -0800 # Subject: [PATCH] respect CC variable (#26480) #======================================================================================== --- src/python/grpcio/commands.py +++ 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++17', '-'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)