Skip to content

Conversation

@compnerd
Copy link
Member

When cross-compiling from Windows to Android, if we spill past the command line limit, we would need to emit a response file. The response file is emitted into the style of the build rather than the host. This means that on Unix platforms, we need to indicate that the response file is Windows not Unix.

We rely on the internal behaviour of the second flag being special cased and emit the --rsp-quoting=windows parameter in the second argument position to ensure that it is passed on the command line (as if the argument is pushed into the response file, it will not be possible to honour it for processing the file).

When cross-compiling from Windows to Android, if we spill past the
command line limit, we would need to emit a response file. The response
file is emitted into the style of the build rather than the host. This
means that on Unix platforms, we need to indicate that the response file
is Windows not Unix.

We rely on the internal behaviour of the second flag being special cased
and emit the `--rsp-quoting=windows` parameter in the second argument
position to ensure that it is passed on the command line (as if the
argument is pushed into the response file, it will not be possible to
honour it for processing the file).
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd compnerd requested a review from artemcm November 18, 2025 06:15
@compnerd
Copy link
Member Author

This should help repair the nightlies on Windows

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.

1 participant