8000 Revert "BLD: Fix code checking for old GCC on cygwin." · charris/numpy@8fc9a9f · GitHub
[go: up one dir, main page]

Skip to content

Commit 8fc9a9f

Browse files
DWeslcharris
authored andcommitted
Revert "BLD: Fix code checking for old GCC on cygwin."
This reverts commit d9c21bb. Replaced by numpy#17548.
1 parent af0de3d commit 8fc9a9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def _gcc_version_less_than(obj, test_version):
211211
[cc, "-dumpversion"],
212212
stdout=subprocess.PIPE,
213213
)
214-
ver = LooseVersion(out.stdout.strip().decode("ascii"))
214+
ver = LooseVersion(out.stdout.strip())
215215
gcc_version_lt_provided = ver < test_version
216216
return gcc_version_lt_provided
217217

@@ -244,7 +244,7 @@ def build_extension(self, ext):
244244
if _needs_gcc_c99_flag(self):
245245
if '-std=c99' not in ext.extra_compile_args:
246246
ext.extra_compile_args.append('-std=c99')
247-
if _is_old_gcc_on_cygwin(self):
247+
if _is_old_gcc_on_cygwin(self, ext):
248248
if '-ffixed-xmm' not in ext.extra_compile_args:
249249
ext.extra_compile_args.append(
250250
'-fno-asynchronous-unwind-tables '

0 commit comments

Comments
 (0)
0