-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.Category: This is a bug.D-terseDiagnostics: An error or lint that doesn't give enough information about the problem at hand.Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
Description
rustc
warns when finding an unknown jobserver style, but the Make manual seems to suggest to ignore it (since new kinds may be introduced in the future), or at least that is one possible interpretation:
If your tool does not recognize the format of the
--jobserver-auth
string, it should assume the jobserver is using a different style and it cannot connect.
One could also read that as "... and then warn about it", like it asks to do for the simple pipe case. But if that is the case, I am not sure why it would say "it cannot connect" since obviously one would not be able to do so, i.e. I take it to mean "ignore it".
Thus, should CannotParse
from jobserver
be taken as an OK case, or should we keep the current behavior?
$ echo 'fn main() {}' | MAKEFLAGS=--jobserver-auth=new rustc -
warning: failed to connect to jobserver from environment variable `MAKEFLAGS="--jobserver-auth=new"`: cannot parse jobserver environment variable value: expected `fifo:PATH` or `R,W`, found `new`
|
= note: the build environment is likely misconfigured
From #120515.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.Category: This is a bug.D-terseDiagnostics: An error or lint that doesn't give enough information about the problem at hand.Diagnostics: An error or lint that doesn't give enough information about the problem at hand.