summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorThomas Vermeilh <ory@oryctero.pe>2021-04-14 15:17:02 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2021-04-15 11:07:41 +0200
commitc39c47c2e5a3839ab57dec0d585b7e6af60416f6 (patch)
tree358259608b142a132087c837f9f688b7a1b1a76a /README.md
parentd0d0726615e1891a66282e77d2b1daba072570cf (diff)
Add env var EXTRA_CLANG_ARGS_<TARGET>
Closes #2009
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index e1ad557e..60e064ff 100644
--- a/README.md
+++ b/README.md
@@ -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].