summaryrefslogtreecommitdiffstats
path: root/library/backtrace/crates/cpp_smoke_test/build.rs
blob: 5ddc63d828d0a07cbb8de8110bd5e0b5c073fe87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() {
    compile_cpp();
}

fn compile_cpp() {
    println!("cargo:rerun-if-changed=cpp/trampoline.cpp");

    cc::Build::new()
        .cpp(true)
        .debug(true)
        .opt_level(0)
        .file("cpp/trampoline.cpp")
        .compile("libcpptrampoline.a");
}