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

add a function to populate flags from an arbitrary environment variable #818

Merged
merged 2 commits into from
Jul 17, 2023

Commits on Jul 15, 2023

  1. add a function to populate flags from an arbitrary environment variable

    My specific use-case is to add ability for the end users to specify
    crate-specific environment variables, but with how general this method
    is I could imagine numerous other applications too.
    
    Why does this need to be in `cc-rs`, you ask? The code to split up the
    `CFLAGS` or `CXXFLAGS` environment variables into flags seems trivial
    today, but I worry that it might not remain the case indefinitely into
    the future. If everybody is expected to do this in their own build
    scripts, we’re certain to run into a very inconsistent experience as
    soon as parsing needs an adjustment.
    nagisa committed Jul 15, 2023
    Configuration menu
    Copy the full SHA
    a8c9a61 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2023

  1. README: some text about additional environment variables

    This is specifically a end-user facing information, so that they are
    aware of the possibility that there may be additional environment
    variables as well.
    nagisa committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    303f8f9 View commit details
    Browse the repository at this point in the history