mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 09:39:08 -05:00
fd5a12d7e2
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
17 lines
361 B
Rust
17 lines
361 B
Rust
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
|
|
|
|
fn main() {
|
|
// Skip building from docs.rs.
|
|
if std::env::var_os("DOCS_RS").is_some() {
|
|
return;
|
|
}
|
|
|
|
println!(
|
|
"cargo:rustc-env=TARGET={}",
|
|
std::env::var("TARGET").unwrap()
|
|
);
|
|
println!(
|
|
"cargo:rustc-env=PROFILE={}",
|
|
std::env::var("PROFILE").unwrap()
|
|
);
|
|
}
|