-
Notifications
You must be signed in to change notification settings - Fork 698
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
Add BINDGEN_EXTRA_CLANG_ARGS env variable #1537
Conversation
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @fitzgen (or someone else) soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall it seems ok. I think documenting it would be better, but no huge preference. Needs some changes to the test at least.
I think I have fixed both comments, @emilio. Thanks for catching those issues! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good to me :)
I'd like to get a crates.io version with this change in it. When is the 0.48.2 release? |
I'll try to publish something this week :) |
Feature was originally introduced in pull-request rust-lang#1537
Feature was originally introduced in pull-request #1537
Feature was originally introduced in pull-request rust-lang#1537
Similar to users in #1229 , my cross compiler needed a way to pass
--sysroot <custom chroot path>
to all invocations of clang without modifying Rust crate sources. After finding ways to do that with environment variables for the pkgconfig, cmake, and cc crates, I couldn't find one for bindgen. So here it is!While I think it's an important fix for corner cases, I've chosen not to document it since it might be a footgun for new users. If you disagree, I'd happily add a docstring if I could get guidance on where.
Since they commented on #1229:
r? @fitzgen