Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ffcf808e34af2a6434405280d5afd064f489a832
      
https://github.com/WebKit/WebKit/commit/ffcf808e34af2a6434405280d5afd064f489a832
  Author: Adrian Perez de Castro <[email protected]>
  Date:   2026-02-11 (Wed, 11 Feb 2026)

  Changed paths:
    M Source/cmake/WebKitCompilerFlags.cmake

  Log Message:
  -----------
  REGRESSION(307222@main): Cannot build with Clang 18
https://bugs.webkit.org/show_bug.cgi?id=307581

Reviewed by Michael Catanzaro.

Commit 307222@main introduced a template that relies on matching a
template parameter with a compatible argument, which is valid C++17;
but Clang version 18 (and older, all the way down to version 4) gate
this feature behind the -frelaxed-template-template-args command line
argument: https://clang.llvm.org/cxx_status.html#p0522

The solution is to tweak the CMake build system to add the command
line flag to enable complete C++17 support when using older Clang
versions.

* Source/cmake/WebKitCompilerFlags.cmake: Pass -frelaxed-template-template-args
to the C++ compiler when using Clang older than version 19.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to