shrooms-vb-native/build.rs

13 lines
353 B
Rust
Raw Normal View History

2024-11-02 20:18:41 +00:00
use std::path::Path;
fn main() {
2024-11-03 16:32:53 +00:00
println!("cargo::rerun-if-changed=shrooms-vb-core");
2024-11-02 20:18:41 +00:00
cc::Build::new()
.include(Path::new("shrooms-vb-core/core"))
2024-11-03 16:32:53 +00:00
.opt_level(2)
2024-11-02 20:18:41 +00:00
.flag_if_supported("-flto")
.flag_if_supported("-fno-strict-aliasing")
.file(Path::new("shrooms-vb-core/core/vb.c"))
.compile("vb");
}