Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 820c3708a4f67ecbd1d0535e4d31044e8d4605ca
      
https://github.com/WebKit/WebKit/commit/820c3708a4f67ecbd1d0535e4d31044e8d4605ca
  Author: Richard Robinson <[email protected]>
  Date:   2026-09-19 (Sat, 19 Sep 2026)

  Changed paths:
    M Source/WebCore/CMakeLists.txt
    M Source/WebCore/Configurations/WebCore.xcconfig
    M Source/WebCore/PlatformCocoa.cmake
    A Source/WebCore/SwiftStub.swift
    A Source/WebCore/SwiftStubInterop.cpp
    A Source/WebCore/WebCore-Swift.h
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/platform/cocoa/CocoaWritingToolsTypes.h
    M Source/WebCore/platform/gamepad/cocoa/GameControllerSPI.h
    M Source/WebCore/platform/gamepad/cocoa/GameControllerSoftLink.h
    M Source/WebCore/testing/cocoa/WebViewVisualIdentificationOverlay.h
    M Source/WebKit/UIProcess/API/Cocoa/WKWebViewInternal.h

  Log Message:
  -----------
  [Swift in WebKit] Support Swift in WebCore
https://bugs.webkit.org/show_bug.cgi?id=324325
rdar://187561136

Reviewed by Elliott Williams.

Enable being able to use Swift in WebCore!

* Source/WebCore/Configurations/WebCore.xcconfig:

- Disable `BUILD_LIBRARY_FOR_DISTRIBUTION` for WebCore so that it can export 
C++ symbols from Swift.
- Add Swift flags to match the other frameworks

* Source/WebCore/SwiftStub.swift: Added.
(thisIsHereToEmitASwiftSymbolFromWebCore):

- Add a dummy stub symbol for validation and to prevent regressions until 
there's "real"
WebCore Swift symbols

* Source/WebCore/WebCore.xcodeproj/project.pbxproj:

* Source/WebCore/platform/cocoa/CocoaWritingToolsTypes.h:
* Source/WebCore/platform/gamepad/cocoa/GameControllerSPI.h:
* Source/WebCore/platform/gamepad/cocoa/GameControllerSoftLink.h:
* Source/WebCore/testing/cocoa/WebViewVisualIdentificationOverlay.h:
* Source/WebKit/UIProcess/API/Cocoa/WKWebViewInternal.h:

- Add some module guards so that Swift doesn't see UIKit from WebCore.

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



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

Reply via email to