File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,6 @@ crate-type = ["cdylib"]
3030[features ]
3131default = []
3232
33- # Include runtime-detected functions that use AVX512VL.
34- avx512 = []
35-
3633# Avoid bundling libgcc on musl.
3734unwind = [" unwinding" ]
3835
@@ -41,6 +38,7 @@ unwind = ["unwinding"]
4138yyjson = []
4239
4340# Features detected by build.rs. Do not specify.
41+ avx512 = []
4442generic_simd = []
4543inline_int = []
4644intrinsics = []
Original file line number Diff line number Diff line change @@ -29,6 +29,11 @@ fn main() {
2929 #[ allow( unused_variables) ]
3030 let is_64_bit_python = matches ! ( python_config. pointer_width, Some ( 64 ) ) ;
3131
32+ #[ cfg( target_arch = "x86_64" ) ]
33+ if version_check:: is_min_version ( "1.89.0" ) . unwrap_or ( false ) && is_64_bit_python {
34+ println ! ( "cargo:rustc-cfg=feature=\" avx512\" " ) ;
35+ }
36+
3237 if version_check:: supports_feature ( "core_intrinsics" ) . unwrap_or ( false ) {
3338 println ! ( "cargo:rustc-cfg=feature=\" intrinsics\" " ) ;
3439 }
You can’t perform that action at this time.
0 commit comments