Skip to content

Conversation

@Steelskin
Copy link
Contributor

line-directive was expanding response files for the swiftc invocation, which was causing issues on CI when the file list got too long. This changes the script to stop expanding response files and pass them as-is to the swiftc invocation instead. The format for the response files was also incorrect, with each individual file being quoted, so this fixes the CMake script generating those.
Finally, this changes line-directive to dump the command line on failure.

`line-directive` was expanding response files for the swiftc invocation,
which was causing issues on CI when the file list got too long. This
changes the script to stop expanding response files and pass them as-is
to the swiftc invocation instead. The format for the response files was
also incorrect, with each individual file being quoted, so this fixes
the CMake script generating those.
Finally, this changes `line-directive` to dump the command line on
failure.
@compnerd
Copy link
Member

compnerd commented Jun 4, 2025

@swift-ci please smoke test

@compnerd
Copy link
Member

compnerd commented Jun 5, 2025

@swift-ci please smoke test macOS platform

@compnerd compnerd merged commit 11dc3d1 into swiftlang:main Jun 5, 2025
3 checks passed
@Steelskin Steelskin deleted the fabrice/line-directive-stop-expanding-rsp branch June 5, 2025 16:35
Steelskin added a commit to Steelskin/swift that referenced this pull request Jun 5, 2025
The changes in swiftlang#81996 fixed the response file format but failed to
actually make `line-directive` stop expanding the response files in the
compiler invocation. These changes fix that.
Steelskin pushed a commit to Steelskin/swift that referenced this pull request Jun 10, 2025
…ive-stop-expanding-rsp

line-directive: Stop expanding response files
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.

3 participants