Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4l2-sys: Replace FreeBSD **host-only** include path override with docs #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 9, 2024

  1. 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`).
    MarijnS95 committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    808b1de View commit details
    Browse the repository at this point in the history