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

update bindgen and no longer rely on -include #2108

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

alex
Copy link
Collaborator

@alex alex commented Nov 26, 2023

also make path seperator windows friendly

fixes #2087
fixes #2086
closes #2089

@alex alex force-pushed the bindgen-boringssl branch from 830513e to 863acf3 Compare November 26, 2023 22:51
also make path seperator windows friendly

fixes sfackler#2087
fixes sfackler#2086
closes sfackler#2089
@alex alex force-pushed the bindgen-boringssl branch from 863acf3 to 46c5150 Compare November 26, 2023 22:52
@@ -119,14 +125,19 @@ pub fn run_boringssl(include_dirs: &[PathBuf]) {
.enable_function_attribute_detection()
.default_macro_constant_type(MacroTypeVariation::Signed)
.rustified_enum("point_conversion_form_t")
.allowlist_file(".*/openssl/[^/]+\\.h")
.allowlist_file(".*[/\\\\]openssl/[^/]+\\.h")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't the trailing separators need to be adjusted too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great question. This part I just cargo culted from #2089

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I think the trailling separator comes directly from the include directive of the boringssl headers like #include <openssl/cipher.h>. The windows path will be like \path\to\boringssl\src\include\openssl/cipher.h.

@sfackler sfackler merged commit 9fd62de into sfackler:master Nov 27, 2023
53 checks passed
@alex alex deleted the bindgen-boringssl branch November 27, 2023 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants