Fix typo in Python's Windows build

This commit is contained in:
Lidi Zheng 2020-10-29 17:15:31 -07:00
parent 742383489f
commit ca2b0f5f07
1 changed files with 1 additions and 1 deletions

View File

@ -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', '-'],