Skip to content

Commit 619f0e6

Browse files
committed
-Wextra is for gcc, not for windows
1 parent da55f70 commit 619f0e6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,14 +387,18 @@ def get_cython_extension():
387387
else ["$ORIGIN/libzim/"]
388388
)
389389

390+
extra_compile_args = ["-std=c++11", "-Wall"]
391+
if config.platform != "Windows":
392+
extra_compile_args.append("-Wextra")
393+
390394
wrapper_extension = Extension(
391395
name="libzim",
392396
sources=["libzim/libzim.pyx", "libzim/libwrapper.cpp"],
393397
include_dirs=include_dirs,
394398
libraries=["zim"],
395399
library_dirs=library_dirs,
396400
runtime_library_dirs=runtime_library_dirs,
397-
extra_compile_args=["-std=c++11", "-Wall", "-Wextra"],
401+
extra_compile_args=extra_compile_args,
398402
language="c++",
399403
define_macros=define_macros,
400404
)

0 commit comments

Comments
 (0)