-
Notifications
You must be signed in to change notification settings - Fork 702
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
Querying bindgen
for LLVM version being used
#2138
Comments
I think we print it from a debug log, but of course that's not optimal, it's a fair request. One problematic thing is that |
With #2140 we'd print:
Would that work for you? |
Yeah, that would be great! |
A couple extra thoughts:
|
…rsion --verbose Fixes rust-lang#2138
…rsion --verbose Fixes rust-lang#2138
What is the preferred way to query
bindgen
about what is the LLVM /libclang
version being effectively used/found?One way is passing
bindgen
this header or similar:#pragma message __clang_version__
But ideally, one could query the version with something like:
which would print an extra line:
like
rustc
does. Possibly with other extra information (e.g. the path to the library instead of just the version, whether it was set at runtime viaCLANG_PATH
...).Apologies if I missed any obvious way in the documentation and/or existing issues.
The text was updated successfully, but these errors were encountered: