-
Notifications
You must be signed in to change notification settings - Fork 13.3k
[rustc] Tolerate spaces and blanks inside @response files #116068
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
Comments
Sounds reasonable to me, feel free to send in a PR. The PR would need an FCP from the compiler team because this is stable behavior. A compiler major change proposal is probably not needed because this is so small. |
Case: leading and trailing spaces
(one space after diagnostic:
|
Rustc args files are intended to contain verbatim command line args, one per line. If you're generating spurious spaces or blank lines, you're not generating valid args files. So stripping out blank lines or "extra" whitespace is explicitly not a valid operation to perform on args files. Can't you just update the generator to generate valid args files in the first place? What's the generator in this case? |
We have build tooling that generates rust command-line arguments inside response files, passed like
rustc @args.rsp
.In some cases, the tool emits response files with empty lines, or lines that contain only a single space.
Case (second line is a single space):
diagnostic:
Case (second line is blank):
diagnostic:
Could the
rustc
compiler be updated to ignore space-only and blank lines in response files?The text was updated successfully, but these errors were encountered: