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 the ability to pass environment variables to rustc #315

Closed
wants to merge 1 commit into from

Commits on May 8, 2020

  1. Add the ability to pass environment variables to rustc

    This patch enables callers to supply an additional
    parameter to rust targets (such as "rust_library", "rust_binary",
    etc):
    
      rustc_env = [
        "KEY=VALUE",
      ]
    
    This parameter parses the key/value pairs, and appends them
    to the list of environment variables supplied to rustc.
    
    This parameter emulated the impact of "cargo:rustc-env=VAR=VALUE"
    lines, which are common in build scripts.
    smklein committed May 8, 2020
    Configuration menu
    Copy the full SHA
    70d3b09 View commit details
    Browse the repository at this point in the history