diff options
author | Bert Belder <bertbelder@gmail.com> | 2019-08-28 22:19:07 -0700 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2019-08-29 10:45:00 -0700 |
commit | 89794d5d347d1358ec32ed42e1f0faa6e0ac6abe (patch) | |
tree | b93bd2b981486f13e56349eb619252dc23bcfb9c /cli | |
parent | 590463bd4a8d71330ab808774b63dd6b366bba1f (diff) |
build: make it possible to pass arbitrary env vars to rustc
Diffstat (limited to 'cli')
-rw-r--r-- | cli/BUILD.gn | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/BUILD.gn b/cli/BUILD.gn index 7fd8ba7da..23bc48fda 100644 --- a/cli/BUILD.gn +++ b/cli/BUILD.gn @@ -179,10 +179,10 @@ rust_executable("deno") { # Extract version from Cargo.toml # TODO integrate this into rust.gni by allowing the rust_executable template # to specify a cargo.toml from which it will extract a version. - crate_version = deno_cargo_info.version inputs = [ "Cargo.toml", ] + env = [ "CARGO_PKG_VERSION=${deno_cargo_info.version}" ] } rust_test("cli_test") { @@ -194,10 +194,10 @@ rust_test("cli_test") { ] # Extract version from Cargo.toml - crate_version = deno_cargo_info.version inputs = [ "Cargo.toml", ] + env = [ "CARGO_PKG_VERSION=${deno_cargo_info.version}" ] } # Generates the core TypeScript type library for deno that will be |