Skip to content

Commit 1105825

Browse files
committed
fix: fix setup.py
1 parent 8827e05 commit 1105825

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,11 @@ def build_mupdf_unix( mupdf_local, env, build_type):
758758
env_add(env, 'XCFLAGS', archflags)
759759
env_add(env, 'XLIBS', archflags)
760760

761+
# Add compiler flags to handle C23 compatibility issues on macOS
762+
if darwin:
763+
env_add(env, 'XCFLAGS', '-Wno-deprecated-non-prototype -Wno-error=deprecated-non-prototype')
764+
env_add(env, 'XCXXFLAGS', '-Wno-deprecated-non-prototype -Wno-error=deprecated-non-prototype')
765+
761766
# We specify a build directory path containing 'pymupdf' so that we
762767
# coexist with non-PyMuPDF builds (because PyMuPDF builds have a
763768
# different config.h).

0 commit comments

Comments
 (0)