[webkit-changes] [WebKit/WebKit] d95cad: [LibWebRTC] Enable AVX2 extensions only if host su...

Diego Pino noreply at github.com
Fri Jun 30 01:18:18 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d95cad7579b54950ac97ad0f0c19d1c29aeef489
      https://github.com/WebKit/WebKit/commit/d95cad7579b54950ac97ad0f0c19d1c29aeef489
  Author: Diego Pino Garcia <dpino at igalia.com>
  Date:   2023-06-30 (Fri, 30 Jun 2023)

  Changed paths:
    M Source/ThirdParty/libwebrtc/CMakeLists.txt
    A Source/cmake/DetectAVX2.cmake
    M Source/cmake/WebKitCommon.cmake

  Log Message:
  -----------
  [LibWebRTC] Enable AVX2 extensions only if host supports AVX2
https://bugs.webkit.org/show_bug.cgi?id=258708

Reviewed by Philippe Normand.

Include specialized AVX2 files in LibWebRTC only if the host supports
AVX2 extensions. Also, when AVX2 is enabled, avoid building using AVX512
extensions even if the host has support for it since it may result into
compatibility issues (binary built on host with AVX512 support but
executed in host without AVX512 support will result into a crash).

* Source/ThirdParty/libwebrtc/CMakeLists.txt:
* Source/cmake/DetectAVX2.cmake: Added.
* Source/cmake/WebKitCommon.cmake:

Canonical link: https://commits.webkit.org/265646@main




More information about the webkit-changes mailing list