Bug 243257 - [webkitdirs] Avoid call to `xcodebuild -showsdks` when computing Xcode options
Summary: [webkitdirs] Avoid call to `xcodebuild -showsdks` when computing Xcode options
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Elliott Williams
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-07-27 11:01 PDT by Elliott Williams
Modified: 2022-08-08 11:44 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elliott Williams 2022-07-27 11:01:52 PDT
xcodebuild -showsdks can be noticeably slow. On my system, a warmed up invocation takes ~400 ms, and when switching to a new Xcode toolchain, it can take as long as 9 sec. We only need the list of SDKs available, not any information about their contents, and that can be found by enumerating the SDK directories in the current developer dir.
Comment 1 Elliott Williams 2022-07-27 11:06:19 PDT
Pull request: https://github.com/WebKit/WebKit/pull/2784
Comment 2 Radar WebKit Bug Importer 2022-07-27 11:08:58 PDT
<rdar://problem/97674528>
Comment 3 EWS 2022-08-08 11:44:50 PDT
Committed 253224@main (c6027549fd07): <https://commits.webkit.org/253224@main>

Reviewed commits have been landed. Closing PR #2784 and removing active labels.