Squashed 'vendor/ruvector/' content from commit b64c2172
git-subtree-dir: vendor/ruvector git-subtree-split: b64c21726f2bb37286d9ee36a7869fef60cc6900
This commit is contained in:
14
crates/ruvector-solver/build.rs
Normal file
14
crates/ruvector-solver/build.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
fn main() {
|
||||
// Emit cfg flags for SIMD detection at build time
|
||||
println!("cargo:rerun-if-changed=build.rs");
|
||||
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
{
|
||||
if std::env::var("CARGO_CFG_TARGET_FEATURE").map_or(false, |f| f.contains("avx2")) {
|
||||
println!("cargo:rustc-cfg=has_avx2");
|
||||
}
|
||||
if std::env::var("CARGO_CFG_TARGET_FEATURE").map_or(false, |f| f.contains("avx512f")) {
|
||||
println!("cargo:rustc-cfg=has_avx512");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user