Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从我的 iOS 项目中获取预处理器输出,该项目是使用 LLVM GCC 4.2 编译的,因为我想做一些静态分析。
我尝试使用标志 -save-temps ,但在预编译的标头处编译失败。
我还能做什么?
Gcc 有一个命令行标志“-E”来获取预处理信息。在 xcode 中,您可以轻松地使用 GUI。请参阅此处了解更多信息。