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.
我正在用 LLVM 编写 Objective-C 代码。我有一个文件,其中包含对性能非常关键的代码。是否可以仅针对这个文件打开编译器优化(特别是循环展开),而无需设置项目范围的值?
是的,这是可能的。从项目导航器中选择您的项目文件。然后选择目标。单击构建阶段选项卡。打开编译源部分。双击感兴趣的源文件并添加编译器标志。这是一张图片: