Sha256: 2d39117dd7f0f031a6a85bc0114860010569159fc918de9a7f2d5e326e92f280

Contents?: true

Size: 862 Bytes

Versions: 12

Compression:

Stored size: 862 Bytes

Contents

use std::env;

fn main() {
    let mut build = cc::Build::new();
    let arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();
    let os = env::var("CARGO_CFG_TARGET_OS").unwrap();
    if os == "windows" {
        println!("cargo:rerun-if-changed=src/windows.c");
        build.file("src/windows.c");
    } else if arch == "s390x" {
        println!("cargo:rerun-if-changed=src/unix/s390x.S");
        build.file("src/unix/s390x.S");
    } else {
        // assume that this is included via inline assembly in the crate itself,
        // and the crate will otherwise have a `compile_error!` for unsupported
        // platforms.
        println!("cargo:rerun-if-changed=build.rs");
        return;
    }
    build.define(&format!("CFG_TARGET_OS_{}", os), None);
    build.define(&format!("CFG_TARGET_ARCH_{}", arch), None);
    build.compile("wasmtime-fiber");
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
wasmtime-11.0.0 ./ext/cargo-vendor/wasmtime-fiber-11.0.0/build.rs
wasmtime-10.0.1 ./ext/cargo-vendor/wasmtime-fiber-10.0.1/build.rs
wasmtime-10.0.0 ./ext/cargo-vendor/wasmtime-fiber-10.0.0/build.rs
wasmtime-9.0.4 ./ext/cargo-vendor/wasmtime-fiber-9.0.4/build.rs
wasmtime-9.0.1 ./ext/cargo-vendor/wasmtime-fiber-9.0.1/build.rs
wasmtime-8.0.0 ./ext/cargo-vendor/wasmtime-fiber-8.0.0/build.rs
wasmtime-7.0.0 ./ext/cargo-vendor/wasmtime-fiber-7.0.0/build.rs
wasmtime-6.0.1 ./ext/cargo-vendor/wasmtime-fiber-6.0.1/build.rs
wasmtime-6.0.0 ./ext/cargo-vendor/wasmtime-fiber-6.0.0/build.rs
wasmtime-5.0.0 ./ext/cargo-vendor/wasmtime-fiber-5.0.0/build.rs
wasmtime-0.4.1 ./ext/cargo-vendor/wasmtime-fiber-4.0.0/build.rs
wasmtime-0.4.0 ./ext/cargo-vendor/wasmtime-fiber-4.0.0/build.rs