-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
SCons: Silence redundant MSVC output #87154
Conversation
Hmm, looks like the build actions have some discrepancy to locally building, causing the output to fail. Looking into this now |
561e288
to
b367e67
Compare
b367e67
to
9c674e2
Compare
Alright, figured it out! The method worked if the command wasn't redirected to a temp file; Otherwise, the
Unfortunately not the silver-bullet solution I was hoping for, as there's now a scenario where an obscenely long commandline will have the old behavior. But in practice, it shouldn't affect us at all, and as a bonus we now have linker output suppressed as well! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! |
"Closes" #72246. Technically, that issue is already closed & marked as "not planned", as this is actually an msvc bug1. Nonetheless, I've figured out a workaround for the majority of the issues caused by this: redirecting the
stdout
toNULL
where supported. This works like a charm when compiling objects and resources, effectively reducing output bloat by half!I haven't found a workaround for the linker, but there's only ever less than a handful of files linked in a given build, so it's much less of a concern.In practice, the output logs are significantly cleaner & much more closely resemblegcc
/clang
, and preservingstderr
allows potential errors to still be caught and logged as beforeBefore:
After:
Footnotes
https://developercommunity.visualstudio.com/t/allow-having-clexe-not-print-the-compiled-source-f/717761 ↩