global: per crate build.rs

This commit is contained in:
nym21
2025-08-07 21:22:38 +02:00
parent 03e3760152
commit e3177b8054
33 changed files with 136 additions and 24 deletions

8
crates/brk_mcp/build.rs Normal file
View File

@@ -0,0 +1,8 @@
fn main() {
let profile = std::env::var("PROFILE").unwrap_or_default();
if profile == "release" {
println!("cargo:rustc-flag=-C");
println!("cargo:rustc-flag=target-cpu=native");
}
}