-
Notifications
You must be signed in to change notification settings - Fork 23
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
Hide rustc output by default. #32
base: master
Are you sure you want to change the base?
Conversation
But add an environment variable to allow showing it, if wanted. Fixes cuviper#30
Having now had to undo the hiding in Firefox to find out where a specific problem was coming from, it would be better if autocfg were able to print the output when something unexpected happens, but hide it when the normal behavior of the test happens (even if that means it's an error). Example of an expected error:
Example of an unexpected error:
I don't know if rustc returns different error codes in those cases. |
It does not -- I get exit code Which leaves us in a tough place -- I don't want to get in the business of parsing errors and trying to decide what's important. |
I gather you have applied this patch (or something like it) to your Firefox builds. How has that worked out in practice? Any more instances like @glandium's where you would have wanted the output after all? |
We've applied this patch: https://phabricator.services.mozilla.com/D101861#change-iVkOTcyFYu4x We haven't hit other instances where the output would have been useful, but it's typically in those rare instances where it's needed that you don't necessarily think of such hidden output to be containing the gems you're looking for. One possible heuristic would be to check for the name of what's looked for in the output, and if it's not there, print out the output. |
FWIW I was quite happy about this output when debugging autocfg issues recently. |
But add an environment variable to allow showing it, if wanted.
Fixes #30