587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
22 lines
932 B
Diff
22 lines
932 B
Diff
diff --git a/setup.py b/setup.py
|
|
index 1b5f513..d660b9a 100644
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -184,7 +184,8 @@ class type_generator(build_ext):
|
|
f"unable to find tss2_tpm2_types.h in {pk['include_dirs']}"
|
|
)
|
|
pdata = preprocess_file(
|
|
- header_path, cpp_args=["-D__extension__=", "-D__attribute__(x)="]
|
|
+ header_path, cpp_args=["-D__extension__=", "-D__attribute__(x)="],
|
|
+ cpp_path="@crossPrefix@-cpp",
|
|
)
|
|
parser = c_parser.CParser()
|
|
ast = parser.parse(pdata, "tss2_tpm2_types.h")
|
|
@@ -210,6 +211,7 @@ class type_generator(build_ext):
|
|
"-D__float128=long double",
|
|
"-D_FORTIFY_SOURCE=0",
|
|
],
|
|
+ cpp_path="@crossPrefix@-cpp",
|
|
)
|
|
parser = c_parser.CParser()
|
|
past = parser.parse(pdata, "tss2_policy.h")
|