Bug 315129

Summary: [CMake] Restore WebKit_DerivedHeadersForSwift dependency wiring
Product: WebKit Reporter: zak ridouh <zakr>
Component: CMakeAssignee: zak ridouh <zakr>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

zak ridouh
Reported 2026-05-19 15:25:37 PDT
WebKit_SwiftCxxHeader is now created via cmake_language(DEFER CALL ...) in WEBKIT_SETUP_SWIFT_AND_GENERATE_SWIFT_CPP_INTEROP_HEADER, so the if(TARGET ...) guard added in 313189@main no longer matched and the add_dependencies call was silently skipped. The swift typecheck step then raced the preferences generator and failed with 'SharedPreferencesForWebProcess.h' file not found. Drop the guard and defer the add_dependencies call so it runs after WebKit_SwiftCxxHeader exists.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-05-19 15:25:43 PDT
zak ridouh
Comment 2 2026-05-19 15:26:42 PDT
Wrong commit identifier in the bug description. The guard was added in https://commits.webkit.org/313434@main
zak ridouh
Comment 3 2026-05-19 15:28:21 PDT
EWS
Comment 4 2026-05-19 15:43:57 PDT
Committed 313526@main (5502e61f5335): <https://commits.webkit.org/313526@main> Reviewed commits have been landed. Closing PR #65226 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.