diff options
author | Thomas Vermeilh <ory@oryctero.pe> | 2021-04-14 15:17:02 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2021-04-15 11:07:41 +0200 |
commit | c39c47c2e5a3839ab57dec0d585b7e6af60416f6 (patch) | |
tree | 358259608b142a132087c837f9f688b7a1b1a76a /README.md | |
parent | d0d0726615e1891a66282e77d2b1daba072570cf (diff) |
Add env var EXTRA_CLANG_ARGS_<TARGET>
Closes #2009
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -60,6 +60,10 @@ End-users should set these environment variables to modify `bindgen`'s behavior - Examples: - Specify alternate sysroot: `--sysroot=/path/to/sysroot` - Add include search path with spaces: `-I"/path/with spaces"` +- `BINDGEN_EXTRA_CLANG_ARGS_<TARGET>`: similar to `BINDGEN_EXTRA_CLANG_ARGS`, + but used to set per-target arguments to pass to clang. Useful to set system include + directories in a target-specific way in cross-compilation environments with multiple targets. + Has precedence over `BINDGEN_EXTRA_CLANG_ARGS`. Additionally, `bindgen` uses `libclang` to parse C and C++ header files. To modify how `bindgen` searches for `libclang`, see the [`clang-sys` documentation][clang-sys-env]. |