Sha256: d29a8741dccb222805b1b0f13496cd2d11c83b70ce9dce9f9c57c309af507b99

Contents?: true

Size: 500 Bytes

Versions: 3

Compression:

Stored size: 500 Bytes

Contents

use std::env;

fn main() {
    println!("cargo:rerun-if-changed=build.rs");
    println!("cargo:rustc-check-cfg=cfg(assert_no_panic)");
    println!("cargo:rustc-check-cfg=cfg(feature, values(\"unstable\"))");

    println!("cargo:rustc-check-cfg=cfg(feature, values(\"checked\"))");

    #[allow(unexpected_cfgs)]
    if !cfg!(feature = "checked") {
        let lvl = env::var("OPT_LEVEL").unwrap();
        if lvl != "0" {
            println!("cargo:rustc-cfg=assert_no_panic");
        }
    }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/libm-0.2.11/build.rs
wasmtime-28.0.0 ./ext/cargo-vendor/libm-0.2.11/build.rs
wasmtime-27.0.0 ./ext/cargo-vendor/libm-0.2.11/build.rs