Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d17084f5d21cb33f84b21b3bde475181a128375e
      
https://github.com/WebKit/WebKit/commit/d17084f5d21cb33f84b21b3bde475181a128375e
  Author: Richard Robinson <[email protected]>
  Date:   2026-10-14 (Wed, 14 Oct 2026)

  Changed paths:
    M Source/WebKit/PlatformCocoa.cmake

  Log Message:
  -----------
  [CMake] WebKitSwift fails to build when the deployment target is older than 
the SDK
https://bugs.webkit.org/show_bug.cgi?id=327592
rdar://190055833

Reviewed by Pascoe.

With -explicit-module-build, the Swift driver builds Clang modules for the SDK
version unless -clang-target is given. On a host with a newer SDK,
WebKitSwift's Clang importer therefore saw the new SDK as the minimum OS 
version, while its
Swift compilation conditions (WebKit.platform-swift-args.resp) were derived for
the deployment target version. Therefore, headers and Swift code disagreed on 
HAVE()/ENABLE()
values gated between the two versions.

Swift targets set up through 
WEBKIT_SETUP_SWIFT_AND_GENERATE_SWIFT_CPP_INTEROP_HEADER
already pass -clang-target ${CMAKE_Swift_COMPILER_TARGET}. WebKitSwift is
configured by hand, so pass it there too.

* Source/WebKit/PlatformCocoa.cmake:

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



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

Reply via email to