From 7cc42112c136ce9ef9975363ae4a55fe3c8cd2bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 6 Mar 2025 14:47:18 +0100 Subject: [PATCH] Add quick risc-v workaround in Unittest.cpp --- unittest/UnitTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittest/UnitTest.cpp b/unittest/UnitTest.cpp index 4c45c365a1..6c977c6cc9 100644 --- a/unittest/UnitTest.cpp +++ b/unittest/UnitTest.cpp @@ -1099,7 +1099,7 @@ bool TestBuffer() { return true; } -#if defined(__GNUC__) || defined(__clang__) || defined(__INTEL_COMPILER) +#if PPSSPP_ARCH(SSE2) && (defined(__GNUC__) || defined(__clang__) || defined(__INTEL_COMPILER)) [[gnu::target("sse4.1")]] #endif bool TestSIMD() {