From 89794d5d347d1358ec32ed42e1f0faa6e0ac6abe Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Wed, 28 Aug 2019 22:19:07 -0700 Subject: build: make it possible to pass arbitrary env vars to rustc --- cli/BUILD.gn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli') 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 -- cgit v1.2.3