Bug 317875
| Summary: | [CMake] Build fails with ObjC type redefinition errors with multiple WebKit checkouts | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Qianlang Chen <qianlangchen> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | All | ||
Qianlang Chen
1. Clone WebKit into two separate directories, e.g. ~/WebKitA and ~/WebKitB.
2. Build ~/WebKitA with the cmake preset (e.g. `cmake --preset mac-dev-release && cmake --build --preset mac-dev-release`).
3. Build ~/WebKitB the same way, which may fail with:
RTCVideoFrame.h: error: redefinition of 'RTCVideoRotation'
/Users/.../WebKitA/OpenSource/.../RTCVideoFrame.h: note: previous definition is here
Where the paths point at the other checkout, not the one being built.
4. Deleting ~/WebKitB's cmake build directory and rebuilding does not help because ccache intercepts the PCH compilation step before the compiler even runs, returning the cached result every time.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Qianlang Chen
https://github.com/WebKit/WebKit/pull/67893
EWS
Committed 315854@main (e4b1a3ecdf51): <https://commits.webkit.org/315854@main>
Reviewed commits have been landed. Closing PR #67893 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/180665813>