Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly set up C(lang) preprocessor environment #71

Open
edsko opened this issue Aug 3, 2024 · 3 comments
Open

Correctly set up C(lang) preprocessor environment #71

edsko opened this issue Aug 3, 2024 · 3 comments

Comments

@edsko
Copy link
Collaborator

edsko commented Aug 3, 2024

When processing the input header files, we must ensure that any context that the preprocessor requires (paths, #defines, etc.) should all be set up correctly, ideally well integrated with the general build process (cabal, pkg-config, etc.)

@edsko edsko added this to the 1: `Storable` instances milestone Aug 3, 2024
@edsko
Copy link
Collaborator Author

edsko commented Aug 3, 2024

See also #72 for the possibility of not knowing the values of certain #defines.

@edsko
Copy link
Collaborator Author

edsko commented Aug 15, 2024

One example here is provided by xxHash, where you can define a bunch of CPP macros to configure the library. See also #90 .

@edsko edsko mentioned this issue Aug 15, 2024
3 tasks
@edsko edsko changed the title Correctly set up preprocessor environment Correctly set up C(lang) preprocessor environment Dec 20, 2024
@edsko
Copy link
Collaborator Author

edsko commented Dec 20, 2024

This should be done both in bindgen-as-preprocessor as well as bindgen-in-TH mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant