Stop cl.exe from the output of the original file name

Is there a way to tell cl.exe not to print the source file name? Basically, I want it to not output anything when the file compiles cleanly. In a healthy world, the compiler sent error messages to stderr, and I could just redirect stdout to null. But for some reason, cl.exe wants to send compilation errors to stdout, which makes it difficult to determine success or not.

+5
source share
1 answer

If you want to know if the program succeeded, do not look at its output, check %ERRORLEVEL%.

0
source

All Articles