Skip to content

Commit

Permalink
ctypesgen: add --no-macro-guards
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Dec 4, 2023
1 parent 8f0a425 commit 0fe8578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setupsrc/pypdfium2_setup/packaging_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def run_ctypesgen(target_dir, headers_dir, flags=[], guard_symbols=False, compil
import ctypesgen
assert getattr(ctypesgen, "PYPDFIUM2_SPECIFIC", False)

args = ["ctypesgen", f"--strip-build-path={headers_dir}", "--no-srcinfo", "--library", "pdfium"]
args = ["ctypesgen", f"--strip-build-path={headers_dir}", "--library", "pdfium", "--no-srcinfo", "--no-macro-guards"]

if run_lds:
args += ["--runtime-libdirs", *run_lds]
Expand Down

0 comments on commit 0fe8578

Please sign in to comment.