Skip to content

Commit

Permalink
[1.x] Fix x86_64 to use underscore instead of dash (#3404)
Browse files Browse the repository at this point in the history
Fix x86_64 to use underscore instead of dash

See #3222 (comment) .
  • Loading branch information
traversaro authored Sep 6, 2024
1 parent aea0495 commit 6520c5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libmamba/src/core/virtual_packages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,21 +170,21 @@ namespace mamba
&& __builtin_cpu_supports("avx512cd") && __builtin_cpu_supports("avx512dq")
&& __builtin_cpu_supports("avx512vl"))
{
return "x86_64-v4";
return "x86_64_v4";
}
/* if (__builtin_cpu_supports ("x86-64-v3")) */
if (__builtin_cpu_supports("avx") && __builtin_cpu_supports("avx2")
&& __builtin_cpu_supports("bmi") && __builtin_cpu_supports("bmi2")
&& __builtin_cpu_supports("fma"))
{
return "x86_64-v3";
return "x86_64_v3";
}
/* if (__builtin_cpu_supports ("x86-64-v2")) */
if (__builtin_cpu_supports("popcnt") && __builtin_cpu_supports("sse3")
&& __builtin_cpu_supports("ssse3") && __builtin_cpu_supports("sse4.1")
&& __builtin_cpu_supports("sse4.2"))
{
return "x86_64-v2";
return "x86_64_v2";
}
#endif
return "x86_64";
Expand Down

0 comments on commit 6520c5b

Please sign in to comment.