From 0fe8578f7c2e4e2df15a57d68b84efa30b349f8d Mon Sep 17 00:00:00 2001 From: geisserml Date: Mon, 4 Dec 2023 21:49:03 +0100 Subject: [PATCH] ctypesgen: add --no-macro-guards --- setupsrc/pypdfium2_setup/packaging_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setupsrc/pypdfium2_setup/packaging_base.py b/setupsrc/pypdfium2_setup/packaging_base.py index 146cb5b9b..88124b063 100644 --- a/setupsrc/pypdfium2_setup/packaging_base.py +++ b/setupsrc/pypdfium2_setup/packaging_base.py @@ -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]