From 0fa134a1eaddc1715c885dc14dba41f6ebcf162c Mon Sep 17 00:00:00 2001 From: fp64 <106717720+fp64@users.noreply.github.com> Date: Wed, 22 Mar 2023 09:51:16 -0400 Subject: [PATCH] Add -mfpmath=sse to CMakeLists.txt Only affects x86+32bit+gcc combo. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a6f2ea7c7e..e1c826ce24 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -368,6 +368,10 @@ if(NOT MSVC) if(X86 OR X86_64) # enable sse2 code generation add_definitions(-msse2) + if(NOT X86_64 AND NOT CLANG) + add_definitions(-mfpmath=sse) + # add_definitions(-mstackrealign) + endif() endif() if(IOS)