Cmake-想查看中间的.i文件 [英] Cmake - Want to see intermediate .i files

查看:78
本文介绍了Cmake-想查看中间的.i文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何使Cmake给我一个目标,使我可以在宏扩展等完成的情况下从我的 C 程序中保存.i文件。

I want to know how to make Cmake give me a target that will allow me to save the .i files from my C program with the macro expansion, etc completed.

是否需要为此设置自定义目标?

Will I need to make a custom target to do this?

推荐答案

如果您使用的是Makefile生成器,则已经有.i文件的目标。键入提供帮助,您将看到所有目标,包括后缀为 .i .s 和 .o

If your are using the Makefile generator, then there are already targets for .i files. Type make help, and you will see all the targets, including those suffixed by .i, .s, and .o.

这篇关于Cmake-想查看中间的.i文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆