diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2020-11-29 17:08:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-29 17:08:38 +0100 |
commit | 47a16d21186bfcd7c03f81af6aa30be6620f640a (patch) | |
tree | e1ec64ff5f6655cdc0fa16e4329407ba3115db94 | |
parent | 1ed37b7751899066d8c32e6df288925e4ef2f79e (diff) |
fix: don't unconditionally build canary (#8536)
-rw-r--r-- | cli/build.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cli/build.rs b/cli/build.rs index 76cfedd8b..b0088a9d8 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -257,10 +257,9 @@ fn main() { println!("cargo:rustc-env=TARGET={}", env::var("TARGET").unwrap()); println!("cargo:rustc-env=PROFILE={}", env::var("PROFILE").unwrap()); - println!( - "cargo:rustc-env=DENO_CANARY={}", - env::var("DENO_CANARY").unwrap_or_default() - ); + if let Ok(c) = env::var("DENO_CANARY") { + println!("cargo:rustc-env=DENO_CANARY={}", c); + } let c = PathBuf::from(env::var_os("CARGO_MANIFEST_DIR").unwrap()); let o = PathBuf::from(env::var_os("OUT_DIR").unwrap()); |