alloca 0.4.0

Mostly safe wrapper for alloca
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() {
    let mut builder = cc::Build::new();
    #[cfg(feature = "stack-clash-protection")]
    builder.flag_if_supported("-fstack-clash-protection");
    (if option_env!("CC") == Some("clang") {
        builder.flag("-flto")
    } else {
        &mut builder
    })
    .file("alloca.c")
    .opt_level(2)
    .compile("calloca");
}