Sha256: 10304831100a60c1c2b990762dcfeb47dae8342cf9b54595bec94884e7de5784

Contents?: true

Size: 641 Bytes

Versions: 19

Compression:

Stored size: 641 Bytes

Contents

use std::env;

fn main() {
    cc::Build::new()
        .warnings(false)
        .cpp(true)
        .file("src/implementation.cc")
        .flag_if_supported("-std=c++11")
        .compile("tz_haiku");

    println!("cargo:rerun-if-changed=src/lib.rs");
    println!("cargo:rerun-if-changed=src/implementation.cc");
    println!("cargo:rerun-if-changed=src/interface.h");

    let target = env::var_os("TARGET").expect("cargo should set TARGET env var");
    let target = target
        .to_str()
        .expect("TARGET env var should be valid UTF-8");
    if target.contains("haiku") {
        println!("cargo:rustc-link-lib=be");
    }
}

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/iana-time-zone-haiku-0.1.2/build.rs
wasmtime-28.0.0 ./ext/cargo-vendor/iana-time-zone-haiku-0.1.2/build.rs
wasmtime-27.0.0 ./ext/cargo-vendor/iana-time-zone-haiku-0.1.2/build.rs
wasmtime-26.0.0 ./ext/cargo-vendor/iana-time-zone-haiku-0.1.2/build.rs
wasmtime-25.0.2 ./ext/cargo-vendor/iana-time-zone-haiku-0.1.2/build.rs
wasmtime-25.0.1 ./ext/cargo-vendor/iana-time-zone-haiku-0.1.2/build.rs
wasmtime-25.0.0 ./ext/cargo-vendor/iana-time-zone-haiku-0.1.2/build.rs
wasmtime-24.0.0 ./ext/cargo-vendor/iana-time-zone-haiku-0.1.2/build.rs
wasmtime-23.0.2 ./ext/cargo-vendor/iana-time-zone-haiku-0.1.2/build.rs
wasmtime-22.0.0 ./ext/cargo-vendor/iana-time-zone-haiku-0.1.2/build.rs
wasmtime-21.0.1 ./ext/cargo-vendor/iana-time-zone-haiku-0.1.2/build.rs
wasmtime-20.0.2 ./ext/cargo-vendor/iana-time-zone-haiku-0.1.2/build.rs
wasmtime-20.0.0 ./ext/cargo-vendor/iana-time-zone-haiku-0.1.2/build.rs
wasmtime-18.0.3 ./ext/cargo-vendor/iana-time-zone-haiku-0.1.2/build.rs
wasmtime-17.0.1 ./ext/cargo-vendor/iana-time-zone-haiku-0.1.2/build.rs
wasmtime-17.0.0 ./ext/cargo-vendor/iana-time-zone-haiku-0.1.2/build.rs
wasmtime-16.0.0 ./ext/cargo-vendor/iana-time-zone-haiku-0.1.2/build.rs
wasmtime-15.0.1 ./ext/cargo-vendor/iana-time-zone-haiku-0.1.2/build.rs
wasmtime-15.0.0 ./ext/cargo-vendor/iana-time-zone-haiku-0.1.2/build.rs