Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v4l2-sys: Replace FreeBSD **host-only** include path override with docs
With `cfg!()` on `target_os` this include path is unconditionally used if the _host_ OS is FreeBSD, even if the target OS is different (and its cross-compilation headers are installed elsewhere on the system). The accurate target OS, regardless of what the build script is _running on_ is stored in `CARGO_CFG_TARGET_OS`. Since it is unlikely that the FreeBSD headers reside in `/usr/ local/include` when the *target* is FreeBSD while the host may be something completely different, remove the workaround and document how the user can set up arbitrary include directories for their target using `BINDGEN_EXTRA_CLANG_ARGS` (or the triple-specific variant) by documenting this environment variable in the main `README`. It is common for developers to maintain such a configuration in their home directory's `~/.cargo/ config.toml` for the various architectures that they cross-compile to (together with related variables for the linker and `cc-rs`).
- Loading branch information