File tree 1 file changed +17
-0
lines changed 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,23 @@ Install it via (note that this will download and build the tool from source)::
100
100
101
101
cargo install --locked --version $(scripts/min-tool-version.sh bindgen) bindgen
102
102
103
+ ``bindgen `` needs to find a suitable ``libclang `` in order to work. If it is
104
+ not found (or a different ``libclang `` than the one found should be used),
105
+ the process can be tweaked using the environment variables understood by
106
+ ``clang-sys `` (the Rust bindings crate that ``bindgen `` uses to access
107
+ ``libclang ``):
108
+
109
+ * ``LLVM_CONFIG_PATH `` can be pointed to an ``llvm-config `` executable.
110
+
111
+ * Or ``LIBCLANG_PATH `` can be pointed to a ``libclang `` shared library
112
+ or to the directory containing it.
113
+
114
+ * Or ``CLANG_PATH `` can be pointed to a ``clang `` executable.
115
+
116
+ For details, please see ``clang-sys ``'s documentation at:
117
+
118
+ https://github.com/KyleMayes/clang-sys#environment-variables
119
+
103
120
104
121
Requirements: Developing
105
122
------------------------
You can’t perform that action at this time.
0 commit comments