Supressing PDB generation from the command line - C++

牧云@^-^@ 提交于 2019-12-06 06:49:17

When you navigate through project settings in Visual Studio, most options tell you what their equivalent command-line switch is.

To disable link-time PDB generation, omit the /DEBUG switch.

To disable compile-time PDB generation, omit the /Z switch (/Z{7|i|I}).

[Edit] Oh, in fact if you use the /Z7 switch, the debug information is generated into the object file instead of a PDB. So that particular one is okay. Compilation is faster without it, however. So omit if you don't want any debug information.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!