mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-09 12:28:13 -04:00
fix(ricepp): only build cpu selector if we need to
This commit is contained in:
parent
21fc60ffdf
commit
f3c85c8588
@ -36,7 +36,7 @@ namespace {
|
||||
detail::cpu_variant get_cpu_variant_init() {
|
||||
#ifndef _WIN32
|
||||
#if defined(__has_builtin)
|
||||
#if __has_builtin(__builtin_cpu_supports)
|
||||
#if __has_builtin(__builtin_cpu_supports) && (defined(RICEPP_CPU_BMI2) || defined(RICEPP_CPU_BMI2_AVX512))
|
||||
__builtin_cpu_init();
|
||||
|
||||
bool const has_avx512vl = __builtin_cpu_supports("avx512vl");
|
||||
|
Loading…
x
Reference in New Issue
Block a user