Files
esaxx-rs/build.rs
2023-10-05 14:37:00 +02:00

28 lines
565 B
Rust

#[cfg(feature = "cpp")]
#[cfg(not(target_os = "macos"))]
fn main() {
cc::Build::new()
.cpp(true)
.flag("-std=c++11")
.static_crt(true)
.file("src/esaxx.cpp")
.include("src")
.compile("esaxx");
}
#[cfg(feature = "cpp")]
#[cfg(target_os = "macos")]
fn main() {
cc::Build::new()
.cpp(true)
.flag("-std=c++11")
.flag("-stdlib=libc++")
.static_crt(true)
.file("src/esaxx.cpp")
.include("src")
.compile("esaxx");
}
#[cfg(not(feature = "cpp"))]
fn main() {}