mirror of
https://github.com/topjohnwu/cxx.git
synced 2025-02-25 10:31:12 +00:00
12 lines
385 B
Rust
12 lines
385 B
Rust
fn main() {
|
|
cc::Build::new()
|
|
.file("src/cxx.cc")
|
|
.cpp(true)
|
|
.cpp_link_stdlib(None) // linked via link-cplusplus crate
|
|
.flag_if_supported(cxxbridge_flags::STD)
|
|
.compile("cxxbridge04");
|
|
println!("cargo:rerun-if-changed=src/cxx.cc");
|
|
println!("cargo:rerun-if-changed=include/cxx.h");
|
|
println!("cargo:rustc-cfg=built_with_cargo");
|
|
}
|