mirror of
https://github.com/mii443/esaxx-rs.git
synced 2025-08-22 23:15:44 +00:00
28 lines
567 B
Rust
28 lines
567 B
Rust
#[cfg(feature = "cpp")]
|
|
#[cfg(not(target_os = "macos"))]
|
|
fn main() {
|
|
cc::Build::new()
|
|
.cpp(true)
|
|
.flag("-std=c++11")
|
|
.static_crt(false)
|
|
.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(false)
|
|
.file("src/esaxx.cpp")
|
|
.include("src")
|
|
.compile("esaxx");
|
|
}
|
|
|
|
#[cfg(not(feature = "cpp"))]
|
|
fn main() {}
|