solana-install design proposal
This commit is contained in:
15
install/build.rs
Normal file
15
install/build.rs
Normal file
@ -0,0 +1,15 @@
|
||||
use std::time::SystemTime;
|
||||
|
||||
fn main() {
|
||||
println!(
|
||||
"cargo:rustc-env=TARGET={}",
|
||||
std::env::var("TARGET").unwrap()
|
||||
);
|
||||
println!(
|
||||
"cargo:rustc-env=BUILD_SECONDS_SINCE_UNIX_EPOCH={}",
|
||||
SystemTime::now()
|
||||
.duration_since(SystemTime::UNIX_EPOCH)
|
||||
.unwrap()
|
||||
.as_secs(),
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user