Open
Description
Bindgen often is deployed to build code using libclang's dynamic library, set by LIBCLANG_PATH
. However, in bindgen, there is this code:
Lines 824 to 830 in 4f9fa49
This starts with the following check:
Unfortunately, this means rust-bindgen can easily wind up pulling a different clang than libclang, and it never consults LIBCLANG_PATH
. If this is an intended hazard of the detect_include_paths
function, then it should be documented appropriately. However, as it can easily cause subtly but hazardously incorrect bindings to be generated, it is likely not intended that this is the default.
Metadata
Metadata
Assignees
Labels
No labels