Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7248cd80025616412b7f4f78ebb737fca98ee2b9
      
https://github.com/WebKit/WebKit/commit/7248cd80025616412b7f4f78ebb737fca98ee2b9
  Author: Nikolas Zimmermann <[email protected]>
  Date:   2026-07-01 (Wed, 01 Jul 2026)

  Changed paths:
    M Source/cmake/WebKitFeatures.cmake

  Log Message:
  -----------
  [GTK][WPE] Do not auto-enable Swift when cross-building
https://bugs.webkit.org/show_bug.cgi?id=318187

Reviewed by Carlos Alberto Lopez Perez.

WebKit auto-enables ENABLE_SWIFT_DEMO_URI_SCHEME and
ENABLE_BACK_FORWARD_LIST_SWIFT for WPE/GTK whenever it finds a capable
swiftc on PATH. In a cross build that picks up a host toolchain (e.g.
/opt/swift), which cannot target the SDK, so the build fails while
trying to process a host header like bits/wordsize.h.

Skip the Swift auto-detection when CMAKE_CROSSCOMPILING is set, so the
features default off for any cross build instead of guessing from a host
swiftc. Any default explicitly set beforehand (by the user, the
environment or a platform config) is respected, so a cross target that
does ship a Swift runtime can opt back in by setting the *_DEFAULT
variables to ON.

* Source/cmake/WebKitFeatures.cmake:

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



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

Reply via email to