Skip to content

Commit

Permalink
Do not set compile_args on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Nov 2, 2023
1 parent b246fef commit 2b261e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
PYPY = hasattr(sys, "pypy_version_info")
JYTHON = sys.platform.startswith("java")

compile_args = ["-Wall", "-Wextra", "-Wno-unknown-pragmas"]
if os.name == 'nt':
compile_args = []
else:
compile_args = ["-Wall", "-Wextra", "-Wno-unknown-pragmas"]

ext_module = [
Extension(
Expand Down

0 comments on commit 2b261e9

Please sign in to comment.