mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-15 02:08:36 -07:00
15 lines
392 B
Rust
15 lines
392 B
Rust
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");
|
|
|
|
#[cfg(target_arch = "x86_64")]
|
|
{
|
|
println!("cargo:rustc-flag=-C");
|
|
println!("cargo:rustc-flag=target-feature=+bmi1,+bmi2,+avx2");
|
|
}
|
|
}
|
|
}
|