mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-19 22:34:46 -07:00
global: per crate build.rs
This commit is contained in:
@@ -7,7 +7,7 @@ homepage.workspace = true
|
||||
repository.workspace = true
|
||||
edition.workspace = true
|
||||
version.workspace = true
|
||||
build = "../../build.rs"
|
||||
build = "build.rs"
|
||||
|
||||
[features]
|
||||
full = [
|
||||
|
||||
8
crates/brk/build.rs
Normal file
8
crates/brk/build.rs
Normal 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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user