Don't check for SSE2 support on i386
authorAlberto Garcia <berto@igalia.com>
Tue, 2 Jul 2019 10:03:13 +0000 (11:03 +0100)
committerAlberto Garcia <berto@igalia.com>
Tue, 2 Jul 2019 10:03:13 +0000 (11:03 +0100)
===================================================================

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

Source/cmake/WebKitCompilerFlags.cmake

index 86c939e5f8f054370e2a647998d2f37f786aecdc..1b98a6ff12935e2b421685e487776ce33754cc82 100644 (file)
@@ -144,15 +144,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)