Bug 312105

Summary: [CMake] Fix CMake -Xcc flag deduplication in native Swift target_compile_options
Product: WebKit Reporter: pascoe <pascoe>
Component: CMakeAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 312017    
Bug Blocks:    

pascoe@apple.com
Reported 2026-04-12 12:31:37 PDT
CMake deduplicates repeated -Xcc flags in target_compile_options, keeping only the first instance. PAL and WebKit Swift compilation needs multiple -Xcc -I<path> pairs for the Clang importer. The custom typecheck command (add_custom_command) is unaffected. Currently non-blocking because -explicit-module-build discovers modules via bare -I paths, but would break if explicit module builds are disabled. Fix requires SHELL: prefix at the CMake option level.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-04-12 12:35:00 PDT
Note You need to log in before you can comment on or make changes to this bug.