Skip to content

Querying bindgen for LLVM version being used #2138

Closed
@ojeda

Description

@ojeda

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:

bindgen --version --verbose

which would print an extra line:

LLVM version: 13.0.0

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 via CLANG_PATH...).

Apologies if I missed any obvious way in the documentation and/or existing issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions