Skip to content

Commit

Permalink
fix(python): correct flavor for macos-x64 (#2104)
Browse files Browse the repository at this point in the history
Fixes #1774
  • Loading branch information
jdx authored May 14, 2024
1 parent 063dfff commit 7178414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/core/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ fn python_arch(settings: &Settings) -> &str {
if let Some(arch) = &settings.python_precompiled_arch {
return arch.as_str();
}
if cfg!(target_arch = "x86_64") {
if cfg!(all(os = "linux", target_arch = "x86_64")) {
if cfg!(target_feature = "avx512f") {
"x86_64_v4"
} else if cfg!(target_feature = "avx2") {
Expand Down

0 comments on commit 7178414

Please sign in to comment.