store host triple during build

pull/14/head
dvkt 4 years ago
parent c1b26186e1
commit 12739ba218

@ -0,0 +1,6 @@
fn main() {
println!(
"cargo:rustc-env=PLATFORM={}",
std::env::var("TARGET").unwrap()
);
}

@ -12,4 +12,5 @@ pub mod text;
pub mod ui;
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub const PLATFORM: &str = env!("PLATFORM");
pub const BUG_URL: &str = "https://github.com/dvkt/phetch/issues/new";

Loading…
Cancel
Save