about summary refs log tree commit diff
path: root/tvix/eval/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/build.rs')
-rw-r--r--tvix/eval/build.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tvix/eval/build.rs b/tvix/eval/build.rs
new file mode 100644
index 000000000000..a9c9a78b060d
--- /dev/null
+++ b/tvix/eval/build.rs
@@ -0,0 +1,9 @@
+use std::env;
+
+fn main() {
+    println!(
+        "cargo:rustc-env=TVIX_CURRENT_SYSTEM={}",
+        &env::var("TARGET").unwrap()
+    );
+    println!("cargo:rerun-if-changed-env=TARGET")
+}