aboutsummaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/build.rs b/build.rs
new file mode 100644
index 0000000..ea31c78
--- /dev/null
+++ b/build.rs
@@ -0,0 +1,7 @@
+// Make target-triple used for build accessable in binary
+fn main() {
+ println!(
+ "cargo:rustc-env=TARGET={}",
+ std::env::var("TARGET").unwrap()
+ );
+}