feat(query): enable sse4.2 in x86-64 releaser
@@ -63,6 +63,16 @@ async fn main_entrypoint() -> Result<()> {
set_panic_hook();
set_alloc_error_hook();
+ #[cfg(target_arch = "x86_64")]
+ {
+ if !std::is_x86_feature_detected!("sse4.2") {
+ println!(
+ "Current pre-built binary is typically compiled for x86_64 and leverage SSE 4.2 instruction set, you can build your own binary from source"
+ );
+ return Ok(());
+ }
+ }
+
if conf.meta.is_embedded_meta()? {
MetaEmbedded::init_global_meta_store(conf.meta.embedded_dir.clone()).await?;
}
