summaryrefslogtreecommitdiffstats
path: root/vendor/rayon/build.rs
blob: f38f6ffb4d8e68bfe0aa7efbaccd496231d98a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    let ac = autocfg::new();
    if ac.probe_expression("(0..10).step_by(2).rev()") {
        autocfg::emit("has_step_by_rev");
    }
    if ac.probe_expression("{ fn _foo<const N: usize>() {} }") {
        autocfg::emit("has_min_const_generics");
    }
    if ac.probe_path("std::ops::ControlFlow") {
        autocfg::emit("has_control_flow");
    }
}