From 645676e112b3dbc296455610f6294312416fe26c Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Fri, 11 Feb 2011 11:14:19 -0300 Subject: [PATCH] Windows: fixes for previous commit --- runtests.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/runtests.py b/runtests.py index 7d82b429..bad5e194 100644 --- a/runtests.py +++ b/runtests.py @@ -416,23 +416,22 @@ class CythonCompileTestCase(unittest.TestCase): build_extension.finalize_options() if COMPILER: build_extension.compiler = COMPILER - if (sys.platform == 'win32' and - build_extension.compiler == 'mingw32'): - CFLAGS.append('-Wno-format') ext_include_dirs = [] for match, get_additional_include_dirs in EXT_DEP_INCLUDES: if match(module): ext_include_dirs += get_additional_include_dirs() - self.copy_related_files(test_directory, workdir, module) - + ext_compile_flags = CFLAGS[:] + if build_extension.compiler == 'mingw32': + ext_compile_flags.append('-Wno-format') if extra_extension_args is None: extra_extension_args = {} + self.copy_related_files(test_directory, workdir, module) extension = Extension( module, sources = self.find_source_files(workdir, module), include_dirs = ext_include_dirs, - extra_compile_args = CFLAGS, + extra_compile_args = ext_compile_flags, **extra_extension_args ) if self.language == 'cpp': -- 2.26.2