Skip to content

Commit

Permalink
fix building with clang
Browse files Browse the repository at this point in the history
was failing with: 'call to undeclared function PyMemoryView_CheckExact'
  • Loading branch information
totaam committed Jan 29, 2024
1 parent 2f4315b commit 11cca36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,8 @@ def addldflags(*s):
addldflags("-Wall")
if sys.version_info >= (3, 12):
addcflags("-Wno-deprecated-declarations")
if CC.find("clang") >= 0:
addcflags("-Wno-implicit-function-declaration")
if strict_ENABLED:
if CC.find("clang")>=0:
# clang emits too many warnings with cython code,
Expand Down

0 comments on commit 11cca36

Please sign in to comment.