View cl.exe response file

Visual Studio (2005/2008/2010) seems to be creating an answer file containing flags for the C / C ++ compiler, cl.exe. As soon as compilation is completed, the response file is deleted.

Is there a way to make Visual Studio not delete the answer file? Is there any other way to view the contents of the response file?

+4
source share
1 answer

You can set the Compress parameter "Suppress Start Banner" to "None". This will print the compiler options.

Another way to get the contents of a file is to pause the cl process while it starts (for example, using Process Explorer ), then you have time to view the response file.

+1
source

Source: https://habr.com/ru/post/1316245/


All Articles