Don't check for SSE2 support on i386
authorAlberto Garcia <berto@igalia.com>
Mon, 16 Mar 2020 14:25:01 +0000 (14:25 +0000)
committerAlberto Garcia <berto@igalia.com>
Mon, 16 Mar 2020 14:25:01 +0000 (14:25 +0000)
Bug-Debian: https://bugs.debian.org/930935
Forwarded: no

===================================================================

Gbp-Pq: Name dont-detect-sse2.patch

Source/cmake/WebKitCompilerFlags.cmake

index c5fa4c3ea58e6c1ff125e175acbdb1d277d2ad19..06aa2e841c3d8aace4bccd0fe90248a6fe710f57 100644 (file)
@@ -137,15 +137,6 @@ if (COMPILER_IS_GCC_OR_CLANG)
     if (CMAKE_COMPILER_IS_GNUCXX)
         WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-Wno-expansion-to-defined)
     endif ()
-
-    # Force SSE2 fp on x86 builds.
-    if (WTF_CPU_X86 AND NOT CMAKE_CROSSCOMPILING)
-        WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-msse2 -mfpmath=sse)
-        include(DetectSSE2)
-        if (NOT SSE2_SUPPORT_FOUND)
-            message(FATAL_ERROR "SSE2 support is required to compile WebKit")
-        endif ()
-    endif ()
 endif ()
 
 if (COMPILER_IS_GCC_OR_CLANG AND NOT MSVC)