-
Notifications
You must be signed in to change notification settings - Fork 10.5k
utils: integrate support for caching when building #69961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
CC: @shahmishal @etcwilde |
@swift-ci please test |
1 similar comment
@swift-ci please test |
@swift-ci please test |
Integrate support for sccache into the build system. This allows us to get a reasonable performance increase for clean builds for the C/C++ side of the build. This is currently limited to the MSVC compiler as the extended compiler flags cause issues for sccache.
@swift-ci please test |
@@ -26,9 +26,6 @@ The path to a directory that mimics a file system image root, | |||
under which "Library" and "Program Files" subdirectories will be created | |||
with the files installed by CMake. | |||
|
|||
.PARAMETER BuildType |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the removal of debug builds related here? sccache should see the flag in the compiler invocation and realize that it's a different object being emitted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is related. The Swift build system is just not able to support this (sccache + PDBs don't work very well together, the other changes to use the embedded debug is related). Once we upgrade to a reasonable version of CMake, we should be able to use the CMAKE_MSVC_DEBUG_INFORMATION_FORMAT=Embedded
and get the build types to work again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, okay :/
@swift-ci please build toolchain Windows platform |
Integrate support for sccache into the build system. This allows us to get a reasonable performance increase for clean builds for the C/C++ side of the build. This is currently limited to the MSVC compiler as the extended compiler flags cause issues for sccache.