[CMake] Detect SSE2 at compile time
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 May 2019 10:43:43 +0000 (10:43 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 May 2019 10:43:43 +0000 (10:43 +0000)
commit6e9aec51cfd727a97e1e9d41a153fd96f0e1d140
treefaacfded1c96a8226eab19a67cd5152893ce308b
parent9864c950208b042b52ebe76ee0d04ce58b108627
[CMake] Detect SSE2 at compile time
https://bugs.webkit.org/show_bug.cgi?id=196488

Patch by Xan L√≥pez <xan@igalia.com> on 2019-05-09
Reviewed by Carlos Garcia Campos.

.:

* Source/cmake/DetectSSE2.cmake: Added.
* Source/cmake/WebKitCompilerFlags.cmake: Detect SSE2 support and
add SSE2 to the global compiler flags.

Source/JavaScriptCore:

* assembler/MacroAssemblerX86Common.cpp: Remove unnecessary (and
incorrect) static_assert.
(JSC::MacroAssemblerX86Common::collectCPUFeatures):
* assembler/MacroAssemblerX86Common.h: Remove SSE2 flags.

Tools:

* Scripts/webkitdirs.pm:
(generateBuildSystemFromCMakeProject): Do not add SSE2 flags here
for x86 builds. This is now handled in WebKitCompilerFlags.cmake.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245127 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/assembler/MacroAssemblerX86Common.cpp
Source/JavaScriptCore/assembler/MacroAssemblerX86Common.h
Source/cmake/DetectSSE2.cmake [new file with mode: 0644]
Source/cmake/WebKitCompilerFlags.cmake
Tools/ChangeLog
Tools/Scripts/webkitdirs.pm