Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8c249e411563bcc9390f06e0fbf1b00584b2e1c6
https://github.com/WebKit/WebKit/commit/8c249e411563bcc9390f06e0fbf1b00584b2e1c6
Author: Adrian Taylor <[email protected]>
Date: 2026-06-04 (Thu, 04 Jun 2026)
Changed paths:
M Source/WTF/Scripts/generate-platform-args
M Source/WebKit/CMakeLists.txt
M Source/WebKit/PlatformIOS.cmake
M Source/WebKit/PlatformMac.cmake
M Source/cmake/WebKitMacros.cmake
M Tools/Scripts/swift/swiftc-wrapper.sh
Log Message:
-----------
[Swift GTK] Preprocess Platform*.h to make Swift -D flags
https://bugs.webkit.org/show_bug.cgi?id=315038
Reviewed by Geoffrey Garen.
CMake rules for the Mac currently hard-code an option HAVE_MATERIAL_HOSTING.
They should not hard-code any such options; instead the options to be passed to
the Swift compiler should be worked out the same way as on Xcode builds, which
is by preprocessing Platform* and noting the resulting list of definitions.
That's what this change does. This will ensure the list of HAVE and USE symbols
is appropriate for each different platform.
This also deduplicates the way that -Xcc -D options are passed to Swift based
on the CMake configuration variables.
* Source/WTF/Scripts/generate-platform-args:
(platform_defines_from_dM):
(run_xcode_mode):
(run_cmake_mode):
(main):
* Source/WebKit/CMakeLists.txt:
* Source/WebKit/PlatformIOS.cmake:
* Source/WebKit/PlatformMac.cmake:
* Source/cmake/WebKitMacros.cmake:
* Tools/Scripts/swift/swiftc-wrapper.sh:
Canonical link: https://commits.webkit.org/314527@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications