Skip to content

Commit

Permalink
Remove -Werror compile args in build
Browse files Browse the repository at this point in the history
  • Loading branch information
alisaifee committed Nov 1, 2022
1 parent 946ad68 commit 9750bbc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ def build_extension(self, ext):
debug_level="0",
strip_asserts=True,
)
for ext in extensions:
if "-Werror" in ext.extra_compile_args:
ext.extra_compile_args.remove("-Werror")
except ImportError:
pass
else:
Expand Down

0 comments on commit 9750bbc

Please sign in to comment.