Merge commit 'd803bfe2b1fe7f5e219e50ac20d6801a0a58ac75' as 'vendor/ruvector'
This commit is contained in:
14
vendor/ruvector/crates/ruvector-solver/build.rs
vendored
Normal file
14
vendor/ruvector/crates/ruvector-solver/build.rs
vendored
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