From ca2b0f5f074a5be97794de6eb9889d93ce3b72cb Mon Sep 17 00:00:00 2001 From: Lidi Zheng Date: Thu, 29 Oct 2020 17:15:31 -0700 Subject: [PATCH] Fix typo in Python's Windows build --- src/python/grpcio/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/grpcio/commands.py b/src/python/grpcio/commands.py index 8240beb2958..d9d23d2b62c 100644 --- a/src/python/grpcio/commands.py +++ b/src/python/grpcio/commands.py @@ -217,7 +217,7 @@ class BuildExt(build_ext.build_ext): """Test if default compiler is okay with specifying c++ version when invoked in C mode. GCC is okay with this, while clang is not. """ - if platform.system() != 'Windows': + if platform.system() == 'Windows': return False # TODO(lidiz) Remove the generated a.out for success tests. cc_test = subprocess.Popen(['cc', '-x', 'c', '-std=c++11', '-'],