diff --git a/Cargo.lock b/Cargo.lock index ecc83867..648b4f3d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -101,7 +101,7 @@ dependencies = [ [[package]] name = "hnswlib" -version = "0.8.0" +version = "0.8.1" dependencies = [ "cc", "rand", diff --git a/build.rs b/build.rs index 04bbe7bf..acc7fe42 100644 --- a/build.rs +++ b/build.rs @@ -11,6 +11,7 @@ fn main() -> Result<(), Box> { .flag("-fPIC") .flag("-ftree-vectorize") .flag("-w") + .flag("-march=native") .compile("bindings"); Ok(())