File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,21 @@ impl Default for CodegenConfig {
191
191
/// 4. Rustified enum
192
192
///
193
193
/// If none of the above patterns match, then bindgen will generate a set of Rust constants.
194
+ ///
195
+ /// # Clang arguments
196
+ ///
197
+ /// Extra arguments can be passed to with clang:
198
+ /// 1. [`clang_arg()`](#method.clang_arg): takes a single argument
199
+ /// 2. [`clang_args()`](#method.clang_args): takes an iterator of arguments
200
+ /// 3. `BINDGEN_EXTRA_CLANG_ARGS` environment variable: whitespace separate
201
+ /// environment variable of arguments
202
+ ///
203
+ /// Clang arguments specific to your crate should be added via the
204
+ /// `clang_arg()`/`clang_args()` methods.
205
+ ///
206
+ /// End-users of the crate may need to set the `BINDGEN_EXTRA_CLANG_ARGS` environment variable to
207
+ /// add additional arguments. For example, to build against a different sysroot a user could set
208
+ /// `BINDGEN_EXTRA_CLANG_ARGS` to `--sysroot=/path/to/sysroot`.
194
209
#[ derive( Debug , Default ) ]
195
210
pub struct Builder {
196
211
options : BindgenOptions ,
You can’t perform that action at this time.
0 commit comments