Fix typo in Python's Windows build

pull/24614/head
Lidi Zheng 4 years ago
parent 742383489f
commit ca2b0f5f07
  1. 2
      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', '-'],

Loading…
Cancel
Save