Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR works on shortening up the command line lengths, specifically for Windows.
With the landing of the new availability values, we've leapt over the 32k character limit by about a thousand characters resulting in build failures.
The first patch tells CMake to move source files into a response file. I believe this only takes effect when CMP0157 is enabled, which means that it won't do anything on the Windows CI today since the old Swift driver breaks in that mode. It will shorten things going forward once we have the full swift driver available when building the compiler.
The second patch moves the availability defines to a generated response file.
#81440 doubled the number that we are passing to the compiler, resulting in roughly 2k additional characters being passed on the command line. Prior to this, we were at around 31k, so the 2k put us 1k over the
CreateProcessW
limit.This should fix the Windows CI command line length limit issues for now.