Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 41727b0443bb7a0d9903a262e17ecfa0b0a21c66
https://github.com/WebKit/WebKit/commit/41727b0443bb7a0d9903a262e17ecfa0b0a21c66
Author: Simon Lewis <[email protected]>
Date: 2026-04-27 (Mon, 27 Apr 2026)
Changed paths:
M Tools/Scripts/swift/swiftc-wrapper.sh
Log Message:
-----------
[CMake] swiftc-wrapper: translate -fsanitize=* to -sanitize=*
https://bugs.webkit.org/show_bug.cgi?id=313444
Reviewed by David Kilzer.
When a target has Swift sources, CMake uses swiftc as the link driver.
CMAKE_SHARED_LINKER_FLAGS contains the clang spelling -fsanitize=address
(from WebKitCompilerFlags.cmake), which swiftc rejects with
"unknown argument". swiftc spells it -sanitize=<name>.
The wrapper already translates other clang link flags
(-Wl, -compatibility_version, -weak_framework); add -fsanitize=*.
This unblocks both the mac-asan and mac-tsan presets.
* Tools/Scripts/swift/swiftc-wrapper.sh:
Canonical link: https://commits.webkit.org/312149@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications