From d036764f48c35159243dd6f5fd4ea81d7ccb30a3 Mon Sep 17 00:00:00 2001 From: Hernan Martinez Date: Sun, 20 Apr 2025 00:01:48 -0600 Subject: [PATCH] AVX2 on Clang builds --- scopehal/scopehal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scopehal/scopehal.cpp b/scopehal/scopehal.cpp index a93850a6..caeba2cf 100644 --- a/scopehal/scopehal.cpp +++ b/scopehal/scopehal.cpp @@ -208,7 +208,7 @@ void DetectCPUFeatures() if(g_hasAvx512VL) LogDebug("* AVX512VL\n"); LogDebug("\n"); -#if defined(_WIN32) && defined(__GNUC__) // AVX2 is temporarily disabled on MingW64/GCC until this in resolved: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54412 +#if defined(_WIN32) && defined(__GNUC__) && !defined(__clang__) // AVX2 is temporarily disabled on MingW64/GCC until this in resolved: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54412 if (g_hasAvx2 || g_hasAvx512F || g_hasAvx512DQ || g_hasAvx512VL) { g_hasAvx2 = g_hasAvx512F = g_hasAvx512DQ = g_hasAvx512VL = false;