summaryrefslogtreecommitdiff
path: root/rand/rand_pcg/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rand/rand_pcg/build.rs')
-rw-r--r--rand/rand_pcg/build.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/rand/rand_pcg/build.rs b/rand/rand_pcg/build.rs
new file mode 100644
index 0000000..cb3ae20
--- /dev/null
+++ b/rand/rand_pcg/build.rs
@@ -0,0 +1,8 @@
+extern crate rustc_version;
+use rustc_version::{version, Version};
+
+fn main() {
+ if version().unwrap() >= Version::parse("1.26.0").unwrap() {
+ println!("cargo:rustc-cfg=rust_1_26");
+ }
+}