1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00

fix: don't unconditionally build canary (#8536)

This commit is contained in:
Luca Casonato 2020-11-29 17:08:38 +01:00 committed by GitHub
parent 1ed37b7751
commit 47a16d2118
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -257,10 +257,9 @@ fn main() {
println!("cargo:rustc-env=TARGET={}", env::var("TARGET").unwrap()); println!("cargo:rustc-env=TARGET={}", env::var("TARGET").unwrap());
println!("cargo:rustc-env=PROFILE={}", env::var("PROFILE").unwrap()); println!("cargo:rustc-env=PROFILE={}", env::var("PROFILE").unwrap());
println!( if let Ok(c) = env::var("DENO_CANARY") {
"cargo:rustc-env=DENO_CANARY={}", println!("cargo:rustc-env=DENO_CANARY={}", c);
env::var("DENO_CANARY").unwrap_or_default() }
);
let c = PathBuf::from(env::var_os("CARGO_MANIFEST_DIR").unwrap()); let c = PathBuf::from(env::var_os("CARGO_MANIFEST_DIR").unwrap());
let o = PathBuf::from(env::var_os("OUT_DIR").unwrap()); let o = PathBuf::from(env::var_os("OUT_DIR").unwrap());