diff --git a/scripts/wrap/swig.py b/scripts/wrap/swig.py index 0b656479e7..40568d42d7 100644 --- a/scripts/wrap/swig.py +++ b/scripts/wrap/swig.py @@ -1810,7 +1810,7 @@ def make_command( module, cpp, swig_i): -outdir {os.path.relpath(build_dirs.dir_mupdf)}/platform/python -o {cpp} -includeall - {os.environ.get('XCXXFLAGS', '')} + {os.environ.get('XSWIGFLAGS', '')} -I{os.path.relpath(build_dirs.dir_mupdf)}/platform/python/include -I{os.path.relpath(include1)} -I{os.path.relpath(include2)}