Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d65258118b1eb19de52a731b8fd13409dbae5170
      
https://github.com/WebKit/WebKit/commit/d65258118b1eb19de52a731b8fd13409dbae5170
  Author: Alberto Garcia <[email protected]>
  Date:   2026-04-23 (Thu, 23 Apr 2026)

  Changed paths:
    M Source/cmake/WebKitCompilerFlags.cmake

  Log Message:
  -----------
  Improve detection of whether libatomic is required
https://bugs.webkit.org/show_bug.cgi?id=312975

Reviewed by Michael Catanzaro and Yusuke Suzuki.

The test in WebKitCompilerFlags.cmake that detects if libatomic is
required fails in some compiler versions because the atomic variable
is local to the main() function and gets optimized away. Turning it
into a global variable solves this.

We also build the test without optimizations in GCC and Clang to
prevent similar errors in the future.

* Source/cmake/WebKitCompilerFlags.cmake:

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



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

Reply via email to