My software performs some generation and compilation of C code under the hood. I control this with Python’s Setuptools, which calls a C compiler of its own choice – on Windows this defaults to MSVC. Now when compiling, MSVC emits messages like:
{{filename}}
Creating library C:\{{path}}
Generating code
Finished generating code
(The reason for this has already been asked here.) For my users, this is obstructive and confusing (since my software also generates code). Therefore I wish to disable these messages via a compiler option, environment variable, or similar, i.e., in a way that can be controlled in my setting.
What I tried so far or what doesn’t work:
I could not find anything useful in the list of compiler options using keywords like message, verbos*, status, generat*, etc.
Internet searches only return instructions (such as here) on how to click this or command-line options for other executables (that are not listed for MSVC).
Setuptools’
verbose
argument is already set toFalse
, but I do not think that the solution lies within Setuptools, as this also happens when calling MSVC manually.