This improves find_darwin_sdk_dir to cache the results of executing xcodebuild to find the SDK. Should significantly reduce the CMake re-configure time.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
cmake/Modules/CompilerRTDarwinUtils.cmake | ||
---|---|---|
11 ↗ | (On Diff #104348) | Could you move this change to a separate review and additionally move the variable declaration outside of the function? |
36 ↗ | (On Diff #104348) | Can we move the declaration to top of the file, and then use FORCE to set it at the end of the function? |
cmake/Modules/CompilerRTDarwinUtils.cmake | ||
---|---|---|
3–4 ↗ | (On Diff #105472) | Actually, this doesn't work, as ${sdk_name} isn't available. I'm afraid I'll have to keep this declaration inside the function... |