Skip to content

Conversation

@compnerd
Copy link
Member

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.

@compnerd
Copy link
Member Author

CC: @shahmishal @etcwilde

@compnerd
Copy link
Member Author

@swift-ci please test

1 similar comment
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

compnerd commented Dec 4, 2023

@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.
@compnerd
Copy link
Member Author

compnerd commented Dec 4, 2023

@swift-ci please test

under which "Library" and "Program Files" subdirectories will be created
with the files installed by CMake.
.PARAMETER BuildType
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, okay :/

@compnerd
Copy link
Member Author

compnerd commented Dec 4, 2023

@swift-ci please build toolchain Windows platform

@compnerd compnerd merged commit e5742b2 into swiftlang:main Dec 5, 2023
@compnerd compnerd deleted the sccache branch December 5, 2023 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants