Bug 311030

Summary: [Win] WebKit Windows port cannot be built at the root of the drive.
Product: WebKit Reporter: ryosei.otaka
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: PC   
OS: Windows 11   

ryosei.otaka
Reported 2026-03-29 09:19:03 PDT
If you try to build WebKit at the root of the drive, you cannot build. e.g. If you checkout WebKit/WebKit at `D:\` and you try to build using `perl Tools\Scripts\build-webkit --release` command, build-webkit runs `cmake -DPORT="Win" ... ;skia;woff2" "D:"`. build-webkit uses `D:` to mean `D:\`. But, on Windows, `D:` means `Relative path to the current directory on that drive`. Therefore, cmake understand the path `D:` with `Relative path to the current directory on that drive`. And then, vcpkg is looking for `vcpkg.json` at `D:\WebKitBuild\Release\`, but there are no `vcpkg.json`. To fix this, webkit-build must add `\` to the end of path. WRONG : `cmake -DPORT="Win" ... ;skia;woff2" "D:"` CORRECT : `cmake -DPORT="Win" ... ;skia;woff2" "D:\"`
Attachments
ryosei.otaka
Comment 1 2026-03-29 09:40:22 PDT
EWS
Comment 2 2026-03-29 22:17:53 PDT
Committed 310200@main (54dbe2c9f3dc): <https://commits.webkit.org/310200@main> Reviewed commits have been landed. Closing PR #61627 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2026-03-29 22:18:12 PDT
Note You need to log in before you can comment on or make changes to this bug.