Skip to content

🍒 [6.2] line-directive: Stop expanding response files #82166

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

Merged
merged 3 commits into from
Jul 15, 2025

Conversation

Steelskin
Copy link
Contributor

  • Explanation:
    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.
  • Scope:
    This fixes the response file format and removes the expansion of the response file in line-directive. The scope is limited and should prevent issues on the release branch like the ones we saw on main.
  • Issues:
    N/A
  • Original PRs:
    line-directive: Stop expanding response files #81996
    line-directive: Update outdated comment #82023
    line-directive: Actually stop expanding response files #82028
  • Risk:
    Very low risk, CI should catch any potential issue.
  • Testing:
    Local build on main + CI
  • Reviewers:
    @compnerd
    @etcwilde

compnerd and others added 3 commits June 10, 2025 14:31
…ive-stop-expanding-rsp

line-directive: Stop expanding response files
…ive-update-comment

line-directive: Update outdated comment
…ive-stop-expanding-response-files

line-directive: Actually stop expanding response files
@Steelskin Steelskin requested a review from a team as a code owner June 10, 2025 21:41
@Steelskin Steelskin changed the title 🍒 line-directive: Stop expanding response files 🍒 [6.2] line-directive: Stop expanding response files Jun 10, 2025
@compnerd
Copy link
Member

@swift-ci please test

@compnerd compnerd enabled auto-merge June 24, 2025 15:12
@compnerd compnerd merged commit 8bf3af0 into swiftlang:release/6.2 Jul 15, 2025
5 checks passed
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.

4 participants