Commit 23360aab authored by Lisandro Dalcin's avatar Lisandro Dalcin

Windows: add -Wno-format to CFLAGS when using MinGW

parent 3882708d
...@@ -416,6 +416,9 @@ class CythonCompileTestCase(unittest.TestCase): ...@@ -416,6 +416,9 @@ class CythonCompileTestCase(unittest.TestCase):
build_extension.finalize_options() build_extension.finalize_options()
if COMPILER: if COMPILER:
build_extension.compiler = COMPILER build_extension.compiler = COMPILER
if (sys.platform == 'win32' and
build_extension.compiler == 'mingw32'):
CFLAGS.append('-Wno-format')
ext_include_dirs = [] ext_include_dirs = []
for match, get_additional_include_dirs in EXT_DEP_INCLUDES: for match, get_additional_include_dirs in EXT_DEP_INCLUDES:
if match(module): if match(module):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment