[英]Why am I seeing a compilation error about -falign-loops using LLVM?
I have an iOS application that uses Core Plot, and after I upgraded to Xcode 4.5, I'm seeing the following error when building: 我有一个使用Core Plot的iOS应用程序,升级到Xcode 4.5后,在构建时看到以下错误:
clang: error: argument unused during compilation:
'-falign-loops=16' Command
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
failed with exit code 1
What can cause this and how can I fix it? 是什么原因引起的,如何解决?
-falign-loops
is a GCC option not used by clang. -falign-loops
是clang不使用的GCC选项。 It is normally a warning in clang, so I assume you have the compiler option set to treat warnings as errors ( -Werror
). 通常在clang中是警告,因此我假设您已将编译器选项设置为将警告视为错误(
-Werror
)。
I had the same issue using CorePlot, the following solved the problem 我在使用CorePlot时遇到了相同的问题,以下解决了该问题
Hope it resolves your issue 希望它能解决您的问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.