Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9fd8b013bb76d338306781097105911d4ffde523
      
https://github.com/WebKit/WebKit/commit/9fd8b013bb76d338306781097105911d4ffde523
  Author: Lauro Moura <[email protected]>
  Date:   2026-10-05 (Mon, 05 Oct 2026)

  Changed paths:
    M Source/WebKit/CMakeLists.txt
    M Source/WebKit/PlatformWPE.cmake

  Log Message:
  -----------
  [WPE][CMake] Link failure with ENABLE_LLVM_PROFILE_GENERATION and GNU ld: 
undefined ViewGestureController symbols
https://bugs.webkit.org/show_bug.cgi?id=326282

Reviewed by Nikolas Zimmermann.

Since 314180@main, WPE generates and compiles the message receivers for
ViewGestureController and ViewGestureGeometryCollector unconditionally.
This is done to satisfy WebKit_SWIFT_INTEROP_SOURCES also pulling
UIProcess/ViewGestureController.cpp for non-Windows ports when Swift is
enabled. (Windows was excluded in 319588@main).

But, on ports that don't build these classes, like WPE, it results in
undefined references (regardless of Swift support), relying on the
linker dropping them, which might not happen in some scenarios, like
instrumented PGO builds with the bfd linker.

This commit fixes this by making WebKit_SWIFT_INTEROP_SOURCES also skip
pulling ViewGestureController for WPE, alongside making WPE not generate
the now unneeded message receivers anymore.

* Source/WebKit/CMakeLists.txt: Do not pull ViewGestureController for
  WPE.
* Source/WebKit/PlatformWPE.cmake: Do not generate the ViewGesture*
  message receivers.

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



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

Reply via email to